From b72b32761058767d143e9ff08dc238c5ac9b777c Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 7 Jan 2023 20:33:28 -0500 Subject: Fix reloading UI on updates and restarting steam (#303) --- frontend/src/plugin-loader.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontend/src/plugin-loader.tsx') diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index 381d7954..c37e168c 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -21,6 +21,7 @@ import WithSuspense from './components/WithSuspense'; import Logger from './logger'; import { Plugin } from './plugin'; import RouterHook from './router-hook'; +import { deinitSteamFixes, initSteamFixes } from './steamfixes'; import { checkForUpdates } from './store'; import TabsHook from './tabs-hook'; import OldTabsHook from './tabs-hook.old'; @@ -33,10 +34,6 @@ const SettingsPage = lazy(() => import('./components/settings')); const FilePicker = lazy(() => import('./components/modals/filepicker')); -declare global { - interface Window {} -} - class PluginLoader extends Logger { private plugins: Plugin[] = []; private tabsHook: TabsHook | OldTabsHook = document.title == 'SP' ? new OldTabsHook() : new TabsHook(); @@ -92,6 +89,8 @@ class PluginLoader extends Logger { ); }); + initSteamFixes(); + initFilepickerPatches(); this.updateVersion(); @@ -184,6 +183,7 @@ class PluginLoader extends Logger { public deinit() { this.routerHook.removeRoute('/decky/store'); this.routerHook.removeRoute('/decky/settings'); + deinitSteamFixes(); deinitFilepickerPatches(); this.focusWorkaroundPatch?.unpatch(); } -- cgit v1.2.3