diff options
| author | marios <marios8543@gmail.com> | 2025-10-07 02:40:41 +0300 |
|---|---|---|
| committer | marios <marios8543@gmail.com> | 2025-10-07 02:40:41 +0300 |
| commit | 968c8b113c4ec52d121520aac7879a31c2856446 (patch) | |
| tree | 72a33f71d7682965a4ee1320442e3ac2043135e1 /backend/decky_loader/utilities.py | |
| parent | 6fac72112c28bc57512f6522304bc29df7431f9e (diff) | |
| download | decky-loader-marios8543/plugin-disable.tar.gz decky-loader-marios8543/plugin-disable.zip | |
working plugin disable, not tested extensivelymarios8543/plugin-disable
Diffstat (limited to 'backend/decky_loader/utilities.py')
| -rw-r--r-- | backend/decky_loader/utilities.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index 63ffff06..ea797dad 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -80,6 +80,8 @@ class Utilities: context.ws.add_route("utilities/restart_webhelper", self.restart_webhelper) context.ws.add_route("utilities/close_cef_socket", self.close_cef_socket) 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.web_app.add_routes([ post("/methods/{method_name}", self._handle_legacy_server_method_call) @@ -481,7 +483,7 @@ class Utilities: await self.set_setting("disabled_plugins", disabled_plugins) await self.context.plugin_loader.plugins[name].stop() - await self.context.ws.emit("loader/unload_plugin", name) + await self.context.ws.emit("loader/disable_plugin", name) async def enable_plugin(self, name: str): disabled_plugins: List[str] = await self.get_setting("disabled_plugins", []) |
