Skip to content

Commit

Permalink
Add entry in the Database menu (fix #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed May 2, 2024
1 parent cd0d4ae commit 4dc479c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pg_service_parser/pg_service_parser_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ def initGui(self):
)
self.action.triggered.connect(self.run)
self.iface.addToolBarIcon(self.action)
self.iface.addPluginToDatabaseMenu("PG service parser", self.action)

def unload(self):
self.iface.removeToolBarIcon(self.action)
del self.action
self.iface.removePluginDatabaseMenu("PG service parser", self.action)

def run(self):
dlg = PgServiceDialog(self.iface.mainWindow())
Expand Down

0 comments on commit 4dc479c

Please sign in to comment.