PICARD-1313: Unregister extension points when uninstalling a plugin

This commit is contained in:
Philipp Wolfer
2018-10-18 09:32:12 +02:00
committed by Philipp Wolfer
parent b1410780d6
commit 2b4d2106ea

View File

@@ -397,7 +397,7 @@ class PluginManager(QtCore.QObject):
if os.path.isfile(update):
log.debug("Removing file %r", update)
os.remove(update)
_unregister_module_extensions(plugin_name)
self.plugins = [ p for p in self.plugins if p.module_name != plugin_name]
def remove_plugin(self, plugin_name, with_update=False):