From db04635b84ba5b639186de6b9dc5eba3f51d7093 Mon Sep 17 00:00:00 2001 From: Tom LAVEILLE Date: Fri, 20 Mar 2026 14:27:48 +0100 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"gn=5Ftools"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gn_tools/metadata.txt | 6 +++--- gn_tools/plugin_main.py | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) mode change 100755 => 100644 gn_tools/plugin_main.py diff --git a/gn_tools/metadata.txt b/gn_tools/metadata.txt index 04c8a98..984f310 100644 --- a/gn_tools/metadata.txt +++ b/gn_tools/metadata.txt @@ -19,16 +19,16 @@ deprecated=False experimental=True plugin_dependencies= qgisMinimumVersion=3.30 -qgisMaximumVersion=3.99 +qgisMaximumVersion=4.99 supportsQt6=True # versioning -version=0.1.0 +version=0.1.1 changelog= [service] -domain_name=https://geonature.cen-isere.fr/geonature +domain_name=https://geonature.cenra-outils.org/geonature biodiv_aura=https://donnees.biodiversite-auvergne-rhone-alpes.fr [ref_taxon] diff --git a/gn_tools/plugin_main.py b/gn_tools/plugin_main.py old mode 100755 new mode 100644 index 6b49ee2..17a7ba5 --- a/gn_tools/plugin_main.py +++ b/gn_tools/plugin_main.py @@ -24,7 +24,7 @@ from qgis.PyQt.QtCore import QCoreApplication, QLocale, QTranslator, QUrl from qgis.PyQt.QtGui import QDesktopServices, QIcon from qgis.PyQt.QtWidgets import QAction, QMessageBox from qgis.PyQt.QtNetwork import QNetworkAccessManager -from PyQt5.QtWidgets import QCheckBox, QApplication +from qgis.PyQt.QtWidgets import QCheckBox, QApplication # project from gn_tools.__about__ import ( @@ -388,12 +388,13 @@ class GnToolsPlugin: self.dlg.show() # Run the dialog event loop - result = self.dlg.exec_() + result = self.dlg.exec() if result: # Do something useful here - delete the line containing pass and # substitute with you print('ok') print(result) + self.dlg.activateWindow() pass @@ -469,7 +470,7 @@ class GnToolsPlugin: def activate_window(self): # Put the dialog on top once the rectangle is drawn - # self.activateWindow() + self.dlg.activateWindow() self.canvas.unsetMapTool(self.move_tool) self.check_valid()