diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-01-07 20:33:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 17:33:28 -0800 |
| commit | b72b32761058767d143e9ff08dc238c5ac9b777c (patch) | |
| tree | ab3cb1d855a20c37355f1b0c650647cd733a1d5d /frontend/src/steamfixes/reload.ts | |
| parent | b8fdff80933b0164096c94358ab8123722906e0d (diff) | |
| download | decky-loader-b72b32761058767d143e9ff08dc238c5ac9b777c.tar.gz decky-loader-b72b32761058767d143e9ff08dc238c5ac9b777c.zip | |
Fix reloading UI on updates and restarting steam (#303)v2.4.9-pre1
Diffstat (limited to 'frontend/src/steamfixes/reload.ts')
| -rw-r--r-- | frontend/src/steamfixes/reload.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/src/steamfixes/reload.ts b/frontend/src/steamfixes/reload.ts new file mode 100644 index 00000000..e31f78fc --- /dev/null +++ b/frontend/src/steamfixes/reload.ts @@ -0,0 +1,14 @@ +import Logger from '../logger'; + +const logger = new Logger('ReloadSteamFix'); + +export default function reloadFix() { + // Hack to unbreak the ui when reloading it + if (window.FocusNavController?.m_rgAllContexts?.length == 0) { + SteamClient.URL.ExecuteSteamURL('steam://open/settings'); + logger.log('Applied UI reload fix.'); + } + + // This steamfix does not need to deinit. + return () => {}; +} |
