-
-
Notifications
You must be signed in to change notification settings - Fork 39
UBA Shutdown Plugins
Eliran Wong edited this page Mar 9, 2021
·
2 revisions
UBA shutdown plugins are plugins executed just before UBA is completely closed.
Read https://github.com/eliranwong/UniqueBible/wiki/UBA-Plugins for other types of UBA plugins.
You may automate a feature on exit with an UBA shutdown plugin.
You may also ask UBA to run a batch of commands on exit with an UBA shutdown plugin.
For example, you may simply write two lines to say "bye bye" each time UBA shuts down.
import config
config.mainWindow.runTextCommand("SPEAK:::Bye bye!")
You can automate a menu plugin on exit, for example:
UBA shutdown plugins are executed before all available configurations are saved on file "config.py" before exit.
Therefore, it is possible to use a shutdown plugin to change config values in the last minute.