mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-02 23:32:25 -06:00
Add _uninstall function to the python Plugin template
This commit is contained in:
parent
8f6c61207f
commit
28fb6281b4
1 changed files with 8 additions and 1 deletions
9
main.py
9
main.py
|
|
@ -15,8 +15,15 @@ class Plugin:
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue