mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 15:51:59 +00:00
Possibly actually fix the toasts issue
This commit is contained in:
@@ -26,13 +26,6 @@ class Toaster extends Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
this.settingsModule = findModuleChild((m) => {
|
|
||||||
if (typeof m !== 'object') return undefined;
|
|
||||||
for (let prop in m) {
|
|
||||||
if (typeof m[prop]?.settings?.bDisableToastsInGame !== 'undefined') return m[prop];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
let instance: any;
|
let instance: any;
|
||||||
while (true) {
|
while (true) {
|
||||||
instance = findInReactTree(
|
instance = findInReactTree(
|
||||||
@@ -72,6 +65,12 @@ class Toaster extends Logger {
|
|||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
this.node.stateNode.forceUpdate();
|
this.node.stateNode.forceUpdate();
|
||||||
|
this.settingsModule = findModuleChild((m) => {
|
||||||
|
if (typeof m !== 'object') return undefined;
|
||||||
|
for (let prop in m) {
|
||||||
|
if (typeof m[prop]?.settings?.bDisableToastsInGame !== 'undefined') return m[prop];
|
||||||
|
}
|
||||||
|
});
|
||||||
this.log('Initialized');
|
this.log('Initialized');
|
||||||
this.ready = true;
|
this.ready = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user