mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 09:51:58 +00:00
Improvements to install of remote binaries, and start backend reloading
This commit is contained in:
@@ -91,6 +91,7 @@ class PluginManager:
|
||||
chown_plugin_dir()
|
||||
self.loop.create_task(self.loader_reinjector())
|
||||
self.loop.create_task(self.load_plugins())
|
||||
self.loop.create_task(self.reload_plugin_backends())
|
||||
|
||||
self.web_app.on_startup.append(startup)
|
||||
|
||||
@@ -116,6 +117,13 @@ class PluginManager:
|
||||
self.plugin_loader.import_plugins()
|
||||
# await inject_to_tab("SP", "window.syncDeckyPlugins();")
|
||||
|
||||
async def reload_plugin_backend(self, name):
|
||||
await self.wait_for_server()
|
||||
if name in self.loader.plugins:
|
||||
self.loader.plugins[name].stop()
|
||||
self.loader.plugins.pop(name, None)
|
||||
|
||||
|
||||
async def loader_reinjector(self):
|
||||
while True:
|
||||
tab = None
|
||||
|
||||
Reference in New Issue
Block a user