From 42bfc875999a6090bb2ada66e12179bd6c0d5ba3 Mon Sep 17 00:00:00 2001 From: KeiTa4446 Date: Mon, 10 Jun 2024 12:02:11 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A9=B3=E7=B4=B0=E3=81=AA=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=EF=BC=8C=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=A6=E3=82=92=E9=96=89=E3=81=98=E3=82=8B=E3=82=AA=E3=83=97?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dem_to_csmap.py | 8 ++++++-- dem_to_csmap.ui | 9 ++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dem_to_csmap.py b/dem_to_csmap.py index 75abf37..067f31b 100644 --- a/dem_to_csmap.py +++ b/dem_to_csmap.py @@ -48,11 +48,15 @@ def convert_dem_to_csmap(self): ) except Exception as e: iface.messageBar().pushMessage( - "ERROR", f"処理中に問題が発生しました.: {e}", level=Qgis.Critical + "ERROR", + f"DEMデータの処理中に問題が発生しました.: {e}", + level=Qgis.Critical, ) return # 出力結果をQGISに追加 iface.addRasterLayer(output_path, os.path.basename(output_path)) - self.close() + # 処理終了後にウィンドウを閉じるオプション + if self.ui.checkBox_closeAfterProcessing.isChecked(): + self.close() diff --git a/dem_to_csmap.ui b/dem_to_csmap.ui index 8a40eb4..1981346 100644 --- a/dem_to_csmap.ui +++ b/dem_to_csmap.ui @@ -7,7 +7,7 @@ 0 0 389 - 168 + 191 @@ -34,6 +34,13 @@ + + + + 処理終了後,自動でウィンドウを閉じる + + +