diff --git a/pg_service_parser/pg_service_parser_plugin.py b/pg_service_parser/pg_service_parser_plugin.py index ae5f229..92a987d 100644 --- a/pg_service_parser/pg_service_parser_plugin.py +++ b/pg_service_parser/pg_service_parser_plugin.py @@ -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())