Fix reloading UI on updates and restarting steam

This commit is contained in:
AAGaming
2022-12-29 23:46:47 -05:00
parent 8810a014f3
commit 81fbd0f83f
9 changed files with 151 additions and 44 deletions
+14
View File
@@ -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 () => {};
}