TransWikia.com

PyQGIS: Signal for plugin uninstallation

Geographic Information Systems Asked on November 1, 2021

Is it possible to listen for plugin removal before the plugin is removed?

We save global settings as user interacts with the plugin, but want to reset plugin specific global settings when user uninstalls the plugin.

One Answer

You can use the unload() method of your plugin, which is called also when your plugin is uninstalled.

So, the best place to do your cleaning is there, the unload().


See What is the purpose of some functions and files in QGIS Python plugins? for details.

Answered by Germán Carrillo on November 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP