Skip to content

Commit

Permalink
Fix menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper committed Aug 14, 2023
1 parent 60b354a commit 2c57975
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xplan_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,22 @@ def initGui(self):
self.action.triggered.connect(self.importXplanGml)
self.aboutAction.triggered.connect(self.about)

self.menu = QMenu("&XPlan-reader")
self.menu = QMenu("&XPlan-Reader")
self.menu.setIcon(QIcon(os.path.join(self.plugin_dir, "xplan_reader_icon.png")))
self.menu.addActions([self.action, self.aboutAction])

self.iface.pluginMenu().addMenu(self.menu)
self.iface.addToolBarIcon(self.action)

def unload(self):
self.iface.removePluginMenu("&XPlan-reader", self.action)
self.iface.removePluginMenu("&XPlan-reader", self.aboutAction)
self.iface.removePluginMenu("&XPlan-Reader", self.action)
self.iface.removePluginMenu("&XPlan-Reader", self.aboutAction)
self.iface.removeToolBarIcon(self.action)

QgsExpression.unregisterFunction(plan_layer_id.name())

del self.action
del self.aboutAction

def about(self):
aboutString = (
Expand Down

0 comments on commit 2c57975

Please sign in to comment.