summaryrefslogtreecommitdiff
path: root/backend/decky_loader/utilities.py
diff options
context:
space:
mode:
authorjbofill <74568881+jessebofill@users.noreply.github.com>2026-05-25 17:43:17 -0600
committerGitHub <noreply@github.com>2026-05-25 18:43:17 -0500
commitacaf16521993f7e90206337f24e05649688554e4 (patch)
tree6115990c75fd00687ffd8ea66ca194cbec7f2f91 /backend/decky_loader/utilities.py
parentbef7ede91f0e0363b69d4e64642223f3a8098757 (diff)
downloaddecky-loader-3.2.4.tar.gz
decky-loader-3.2.4.zip
Improved error screen (#841)v3.2.4
* improve the error screen visuals * comment out placeholder buttons * run formatter * Refactor DeckyErrorBoundary styles and text - Removed gray text class usage - Removed styles reminiscent of Steam BPM - Fixed typos * Further refactor of DeckyErrorBoundary.tsx - Change background/text of buttons to be closer to Steam Deck UI - Make panel background not reliant on transparency and have a neutral gray - Bold "likely occurred" text - Make swipe prompt appear in the center of a horizontal bar, drawing more attention to it - Make "An error occurred" text smaller, as it isn't helpful for troubleshooting - Add text clarifying solutions are in recommended order and how to get more help - Add "Retry the action or restart" to the left of Retry, Restart Steam, and Restart Decky buttons - Move disabling Decky to beneath the Decky update checking * Revert header boldness change * add disable plugin buttons to error screen * Set background to black --------- Co-authored-by: EMERALD <info@eme.wtf>
Diffstat (limited to 'backend/decky_loader/utilities.py')
-rw-r--r--backend/decky_loader/utilities.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py
index 75593fd5..c74ac5d1 100644
--- a/backend/decky_loader/utilities.py
+++ b/backend/decky_loader/utilities.py
@@ -82,6 +82,7 @@ class Utilities:
context.ws.add_route("utilities/_call_legacy_utility", self._call_legacy_utility)
context.ws.add_route("utilities/enable_plugin", self.enable_plugin)
context.ws.add_route("utilities/disable_plugin", self.disable_plugin)
+ context.ws.add_route("utilities/set_all_plugins_disabled", self.set_all_plugins_disabled)
context.web_app.add_routes([
post("/methods/{method_name}", self._handle_legacy_server_method_call)
@@ -503,4 +504,13 @@ class Utilities:
disabled_plugins.remove(name)
await self.set_setting("disabled_plugins", disabled_plugins)
- await self.context.plugin_loader.import_plugin(path.join(plugin_dir, "main.py"), plugin_folder) \ No newline at end of file
+ await self.context.plugin_loader.import_plugin(path.join(plugin_dir, "main.py"), plugin_folder)
+
+ async def set_all_plugins_disabled(self):
+ disabled_plugins: List[str] = await self.get_setting("disabled_plugins", [])
+
+ for name, _ in self.context.plugin_loader.plugins.items():
+ if name not in disabled_plugins:
+ disabled_plugins.append(name)
+
+ await self.set_setting("disabled_plugins", disabled_plugins) \ No newline at end of file