You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Friedrich Meckel (Friedrich Meckel)
Original Redmine Issue: 20413
Redmine category:python_plugins
Hello,
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.
The text was updated successfully, but these errors were encountered:
I'm afraid you are mixing different events here. There is only one way to unload plugin — call its unload() method. This method is called when user quits QGIS, deactivates plugin via Plugin Manager or uninstalls plugin. So you need to listen for QGIS signals/actions if you want to handle these events, nothing to do with the plugin itself.
Author Name: Friedrich Meckel (Friedrich Meckel)
Original Redmine Issue: 20413
Redmine category:python_plugins
Hello,
it seems to me that there are several different ways to unload a plugin
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.
The text was updated successfully, but these errors were encountered: