mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:01:59 +00:00
fix old toast patch to not re-create window
This commit is contained in:
@@ -62,6 +62,10 @@ class Toaster extends Logger {
|
|||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
});
|
});
|
||||||
|
this.node.stateNode.shouldComponentUpdate = () => {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
delete this.node.stateNode.render;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
@@ -102,7 +106,7 @@ class Toaster extends Logger {
|
|||||||
|
|
||||||
deinit() {
|
deinit() {
|
||||||
this.instanceRetPatch?.unpatch();
|
this.instanceRetPatch?.unpatch();
|
||||||
this.node && delete this.node.stateNode.render;
|
this.node && delete this.node.stateNode.shouldComponentUpdate;
|
||||||
this.node && this.node.stateNode.forceUpdate();
|
this.node && this.node.stateNode.forceUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user