Ensemble: Create ensemble scenario from current scenario.

This commit is contained in:
parouby committed 2026-09-17 10:02:01 +02:00
1 parent 933c6c1952
commit 7356e5dd30
5 files changed
+43 -19

No files matched your search

+20
View File
@@ -550,6 +550,26 @@ class GraphWidget(QGraphicsView):
self.exec_with_waiting_window(fn, "create_ensemble_scenario")
self.changeScenario.emit(self.sender())
def create_new_ensemble_scenario(self, pos):
must_save = self.dialog_save()
if must_save == "Cancel":
return
def fn():
self._close_other_window()
if must_save == "Save":
self._study.save()
self._undo.push(
CreateEnsembleScenarioCommand(
self._study, pos=pos,
)
)
self.exec_with_waiting_window(fn, "create_ensemble_scenario")
self.changeScenario.emit(self.sender())
def edit_ensemble_scenario(self, item):
self.parent\
.parent\