Feature request #20413
PyQgis Plugin: Differentiaite the kind of unloading a plugin
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Python plugins | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 28233 |
Description
Hello,
it seems to me that there are several different ways to unload a plugin
it seems to me that there are several different ways to unload a plugin
- by quitting Qgis
- by unloading the plugin by removing the checkbox in plugin dialog
- by de-install the plugin from the plugin dialog
- by an automatic unloading-loading cycle when an activated plugin is deinstalled and reinstalled
The last one might be unintetnional, but for the first three there are no signals which the plugin could connect to to differentiate bewteen these three types. But that is of interests when a plugin alters files outside of its dirctory which it wants to reset/recover when it is uninstalled, but not if Qgis is shut down.