mirror of https://gitlab.com/pamhyr/pamhyr2
MainWindow: Minor change and fix.
parent
16ee5a90e4
commit
a5a64f2080
|
|
@ -276,7 +276,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
"action_menu_new": self.open_new_study,
|
||||
"action_menu_edit": self.open_edit_study,
|
||||
"action_menu_open": self.open_model,
|
||||
"action_menu_save": self.save_study,
|
||||
"action_menu_save": lambda: self.save_study(),
|
||||
"action_menu_save_as": self.save_as_study,
|
||||
"action_menu_numerical_parameter": self.open_solver_parameters,
|
||||
"action_menu_edit_scenarios": self.open_scenarios,
|
||||
|
|
@ -691,6 +691,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
progress=lambda: progress.setValue(progress.value() + 1)
|
||||
)
|
||||
|
||||
progress.close()
|
||||
status += " Done"
|
||||
logger.info(status)
|
||||
self.statusbar.showMessage(status, 3000)
|
||||
|
|
@ -765,6 +766,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
|
||||
progress.setValue(progress.value() + 1)
|
||||
|
||||
progress.close()
|
||||
|
||||
def save_as_study_single_scenario(self, sid=-1):
|
||||
sql_request_count = self._study.sql_save_request_count()
|
||||
|
||||
|
|
@ -789,6 +792,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
)
|
||||
|
||||
status += " Done"
|
||||
progress.close()
|
||||
logger.info(status)
|
||||
self.statusbar.showMessage(status, 3000)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue