From 7be5f4fadef0b238be6f171c9190f4717e629fcf Mon Sep 17 00:00:00 2001 From: Pedro Sotorrio Date: Thu, 12 Sep 2024 12:07:50 -0700 Subject: [PATCH] adding notification window to let the user know the file has been updated --- foqus_lib/gui/flowsheet/nodePanel.py | 11 +++++++++++ foqus_lib/gui/flowsheet/nodePanel_UI.ui | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/foqus_lib/gui/flowsheet/nodePanel.py b/foqus_lib/gui/flowsheet/nodePanel.py index 4d43f4bdd..e984ec93c 100644 --- a/foqus_lib/gui/flowsheet/nodePanel.py +++ b/foqus_lib/gui/flowsheet/nodePanel.py @@ -942,3 +942,14 @@ def updateConfigFile(self): # Write the modified content back to the file with open(self.configFile_edit.text(), "w", encoding="utf-8") as file: file.write(content) + + msgBox = QMessageBox() + msgBox.setWindowTitle("Aspen Consumer Configuration File") + dirname = os.path.dirname(self.configFile_edit.text()) + msgBox.setText( + "The Aspen Consumer configuration file has been successfully updated.\n" + "\nPlease make sure your changes are correct before loading it into Aspen.\n" + "\nA backup of the old version has been saved in the directory below:\n" + "\n" + dirname + ) + msgBox.exec_() diff --git a/foqus_lib/gui/flowsheet/nodePanel_UI.ui b/foqus_lib/gui/flowsheet/nodePanel_UI.ui index 941ae3d47..7388cf767 100644 --- a/foqus_lib/gui/flowsheet/nodePanel_UI.ui +++ b/foqus_lib/gui/flowsheet/nodePanel_UI.ui @@ -441,7 +441,7 @@ - 3 + 0 @@ -925,7 +925,7 @@ 0 0 3370 - 367 + 879