mirror of https://gitlab.com/pamhyr/pamhyr2
MainWindow: Put results menu in model action list.
parent
9d69d60ea8
commit
ca8c7a23fd
|
|
@ -104,7 +104,8 @@ define_model_action = [
|
||||||
"action_menu_edit_friction", "action_menu_edit_lateral_contribution",
|
"action_menu_edit_friction", "action_menu_edit_lateral_contribution",
|
||||||
"action_menu_run_solver", "action_menu_sediment_layers",
|
"action_menu_run_solver", "action_menu_sediment_layers",
|
||||||
"action_menu_edit_reach_sediment_layers", "action_menu_edit_reservoirs",
|
"action_menu_edit_reach_sediment_layers", "action_menu_edit_reservoirs",
|
||||||
"action_menu_edit_hydraulic_structures"
|
"action_menu_edit_hydraulic_structures",
|
||||||
|
"action_menu_results_last", "action_open_results_from_file",
|
||||||
]
|
]
|
||||||
|
|
||||||
action = (
|
action = (
|
||||||
|
|
@ -371,7 +372,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||||
|
|
||||||
if solver.name == self.conf.last_solver_name:
|
if solver.name == self.conf.last_solver_name:
|
||||||
self._last_solver = solver
|
self._last_solver = solver
|
||||||
self.enable_actions("action_menu_results_last", True)
|
if self._study is not None:
|
||||||
|
self.enable_actions("action_menu_results_last", True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Last solver note found, use default-mage if exists
|
# Last solver note found, use default-mage if exists
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue