From ace9f61e5007385e0866983d629cbd43e4b6abc7 Mon Sep 17 00:00:00 2001
From: TrainDoctor <traindoctor@protonmail.com>
Date: Sun, 3 Jul 2022 12:52:22 -0700
Subject: Redirect to QAM after installing a plugin, QOL.

---
 frontend/src/plugin-loader.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 17b3ce15..61e7ac42 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -1,4 +1,4 @@
-import { ModalRoot, QuickAccessTab, showModal, staticClasses } from 'decky-frontend-lib';
+import { ModalRoot, QuickAccessTab, Router, showModal, staticClasses } from 'decky-frontend-lib';
 import { FaPlug } from 'react-icons/fa';
 
 import { DeckyState, DeckyStateContextProvider } from './components/DeckyState';
@@ -58,6 +58,7 @@ class PluginLoader extends Logger {
       <ModalRoot
         onOK={() => {
           this.callServerMethod('confirm_plugin_install', { request_id });
+          setTimeout(() => Router.OpenQuickAccessMenu(QuickAccessTab.Decky), 1000);
         }}
         onCancel={() => {
           this.callServerMethod('cancel_plugin_install', { request_id });
-- 
cgit v1.2.3

