Add Plugin.uninstall callback support (#555)

* Add Plugin.uninstall callback support

https://github.com/SteamDeckHomebrew/decky-loader/issues/536

* Remove empty deck.sh
This commit is contained in:
Wayne Heaney
2024-03-13 15:59:22 -07:00
committed by AAGaming
parent 6b06bae250
commit a1a29616e5
3 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class PluginBrowser:
# logger.debug("current plugins: %s", snapshot_string)
if name in self.plugins:
logger.debug("Plugin %s was found", name)
self.plugins[name].stop()
self.plugins[name].stop(uninstall=True)
logger.debug("Plugin %s was stopped", name)
del self.plugins[name]
logger.debug("Plugin %s was removed from the dictionary", name)