diff --git a/pg_service_parser/metadata.txt b/pg_service_parser/metadata.txt index 19e414b..ba90954 100644 --- a/pg_service_parser/metadata.txt +++ b/pg_service_parser/metadata.txt @@ -13,6 +13,6 @@ tags=postgresql,connection,db,database,service homepage=https://github.com/opengisch/qgis-pg-service-parser-plugin tracker=https://github.com/opengisch/qgis-pg-service-parser-plugin/issues repository=https://github.com/opengisch/qgis-pg-service-parser-plugin -icon=images/icon.png +icon=images/logo.png experimental=False deprecated=False diff --git a/pg_service_parser/pg_service_parser_plugin.py b/pg_service_parser/pg_service_parser_plugin.py index 126586f..ae5f229 100644 --- a/pg_service_parser/pg_service_parser_plugin.py +++ b/pg_service_parser/pg_service_parser_plugin.py @@ -1,3 +1,6 @@ +from pathlib import Path + +from qgis.PyQt.QtGui import QIcon from qgis.PyQt.QtWidgets import QAction from pg_service_parser.gui.dlg_pg_service import PgServiceDialog @@ -9,7 +12,11 @@ def __init__(self, iface): self.action = None def initGui(self): - self.action = QAction("Go!", self.iface.mainWindow()) + self.action = QAction( + QIcon(str(Path(__file__).parent / "images" / "logo.png")), + "PG service parser", + self.iface.mainWindow(), + ) self.action.triggered.connect(self.run) self.iface.addToolBarIcon(self.action)