prevent scenario window to open if study is not saved

This commit is contained in:
Theophile Terraz committed 2025-11-28 16:08:54 +01:00
1 parent 81c6d39c1a
commit f7e563e71a
3 files changed
+36 -1

No files matched your search

+10
View File
@@ -266,6 +266,16 @@ class MainTranslate(UnitTranslate):
"incompatible study version"
)
self._dict["mb_unsaved_study_title"] = _translate(
"MainWindow", "Open scenarios window"
)
self._dict["mb_unsaved_studyh_msg"] = _translate(
"MainWindow",
"You must save your study to open "
"the scenario windows"
)
self._dict["x"] = _translate("MainWindow", "X (m)")
self._dict["y"] = _translate("MainWindow", "Y (m)")
self._dict["Yes"] = _translate("MainWindow", "Yes")