forked from AG_QGIS/Plugin_SN_Widmung
Fehler beim Entladen / Update behoben.
This commit is contained in:
5
main.py
5
main.py
@@ -30,11 +30,12 @@ class Widmung:
|
||||
self.dockwidget.deleteLater()
|
||||
self.dockwidget = None
|
||||
|
||||
# Action zurücksetzen, falls vorhanden
|
||||
if self.action:
|
||||
basis = plugins.get("sn_basis")
|
||||
if basis and basis.ui:
|
||||
basis.ui.set_active_plugin(None)
|
||||
# Action aus Menü und Toolbar entfernen
|
||||
basis.ui.remove_action(self.action)
|
||||
self.action = None
|
||||
|
||||
def run(self):
|
||||
self.dockwidget = DockWidget(self.iface.mainWindow(), subtitle=self.plugin_name)
|
||||
|
||||
Reference in New Issue
Block a user