From 89610208c34e4f9d9c8ad8e41519f665d5815298 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 26 Oct 2026 23:57:43 -0400 Subject: pick in some fixes from the vr branch --- frontend/src/developer.tsx | 8 +------- 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); } -- cgit v1.2.3