diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/src/developer.tsx | 8 | ||||
| -rw-r--r-- | frontend/src/toaster.tsx | 13 |
2 files changed, 3 insertions, 18 deletions
diff --git a/frontend/src/developer.tsx b/frontend/src/developer.tsx index 5df6de07..199350bf 100644 --- a/frontend/src/developer.tsx +++ b/frontend/src/developer.tsx @@ -9,16 +9,10 @@ const logger = new Logger('DeveloperMode'); let removeSettingsObserver: () => void = () => {}; -declare global { - interface Window { - settingsStore: any; - } -} - export async function setShowValveInternal(show: boolean) { if (show) { const mobx = - window.settingsStore[ + (window.settingsStore as any)[ Object.getOwnPropertySymbols(window.settingsStore).find( (x) => x.toString() == 'Symbol(mobx administration)', ) as any diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index 99f8023e..e8202541 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -1,21 +1,12 @@ import type { ToastData, ToastNotification } from '@decky/api'; -import { ErrorBoundary, Patch, callOriginal, findModuleExport, injectFCTrampoline, replacePatch } from '@decky/ui'; +import { ESteamNotificationAction, ErrorBoundary, Patch, callOriginal, findModuleExport, injectFCTrampoline, replacePatch } from '@decky/ui'; import Toast from './components/Toast'; import Logger from './logger'; -// TODO export -enum ToastType { - New, - Update, - Remove, -} - declare global { interface Window { __TOASTER_INSTANCE: any; - settingsStore: any; - NotificationStore: any; } } @@ -111,7 +102,7 @@ class Toaster extends Logger { }, toast.expiration); } try { - window.NotificationStore.ProcessNotification(info, toastData, ToastType.New); + window.NotificationStore.ProcessNotification(info, toastData, ESteamNotificationAction.New); } catch (e) { this.error('Error while sending toast:', e); } |
