mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:01:59 +00:00
Redirect to QAM after installing a plugin, QOL.
This commit is contained in:
@@ -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 { FaPlug } from 'react-icons/fa';
|
||||||
|
|
||||||
import { DeckyState, DeckyStateContextProvider } from './components/DeckyState';
|
import { DeckyState, DeckyStateContextProvider } from './components/DeckyState';
|
||||||
@@ -58,6 +58,7 @@ class PluginLoader extends Logger {
|
|||||||
<ModalRoot
|
<ModalRoot
|
||||||
onOK={() => {
|
onOK={() => {
|
||||||
this.callServerMethod('confirm_plugin_install', { request_id });
|
this.callServerMethod('confirm_plugin_install', { request_id });
|
||||||
|
setTimeout(() => Router.OpenQuickAccessMenu(QuickAccessTab.Decky), 1000);
|
||||||
}}
|
}}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
this.callServerMethod('cancel_plugin_install', { request_id });
|
this.callServerMethod('cancel_plugin_install', { request_id });
|
||||||
|
|||||||
Reference in New Issue
Block a user