Skip to content
Snippets Groups Projects
Commit 43c6f5d8 authored by Sylvain Théry's avatar Sylvain Théry
Browse files

Fixed issue when uninstalling plugin (menu keeps there)

parent 56e359e8
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class active_channel_evolution:
# Declare instance attributes
self.actions = []
self.menu = self.tr(u'&Diachronix')
self.menu = self.tr('&Diachronix')
# Check if plugin was started the first time in current QGIS session
# Must be set in initGui() to survive plugin reloads
......@@ -180,7 +180,7 @@ class active_channel_evolution:
icon_path = ':/plugins/diachronix/active_channel_evolution_icon.png'
self.add_action(
icon_path,
text=self.tr(u'Building of the blocks'),
text=self.tr('Building of the blocks'),
callback=self.run,
parent=self.iface.mainWindow())
......@@ -194,7 +194,7 @@ class active_channel_evolution:
for action in self.actions:
print(action)
self.iface.removePluginMenu(
self.tr(u'Building of the blocks'), action)
self.tr('&Diachronix'), action)
self.iface.removeToolBarIcon(action)
# some useful functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment