Skip to content

Commit

Permalink
Add _uninstall function to the python Plugin template (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheaney authored Jul 24, 2024
1 parent a85c797 commit d69496d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ async def add(self, left, right):
async def _main(self):
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):
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!")
pass

Expand Down

0 comments on commit d69496d

Please sign in to comment.