Add _uninstall function to the python Plugin template (#34)

This commit is contained in:
Wayne Heaney 2024-07-24 15:01:55 -07:00 committed by GitHub
parent a85c79735f
commit d69496d4ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,8 +15,15 @@ class Plugin:
async def _main(self): async def _main(self):
decky_plugin.logger.info("Hello World!") decky_plugin.logger.info("Hello World!")
# Function called first during the unload process, utilize this to handle your plugin being removed # Function called first during the unload process, utilize this to handle your plugin being stopped, but not
# completely removed
async def _unload(self): async def _unload(self):
decky_plugin.logger.info("Goodnight World!")
pass
# Function called after `_unload` during uninstall, utilize this to clean up processes and other remnants of your
# plugin that may remain on the system
async def _uninstall(self):
decky_plugin.logger.info("Goodbye World!") decky_plugin.logger.info("Goodbye World!")
pass pass