summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-10-26 23:57:43 -0400
committerAAGaming <aagaming@riseup.net>2026-10-26 23:57:43 -0400
commit89610208c34e4f9d9c8ad8e41519f665d5815298 (patch)
treed64b778bcf78b2de17a60bcbfec61abfce9291a9 /frontend
parentd82e8e8f251f2dddda52ff240e8133dc4f9dd2af (diff)
downloaddecky-loader-89610208c34e4f9d9c8ad8e41519f665d5815298.tar.gz
decky-loader-89610208c34e4f9d9c8ad8e41519f665d5815298.zip
pick in some fixes from the vr branch
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/developer.tsx8
-rw-r--r--frontend/src/toaster.tsx13
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);
}