mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Window: Fix title without study opened.
This commit is contained in:
1 parent
3f650de52f
commit
a97717a624
1 file changed
+6
-5
@@ -186,12 +186,13 @@ class PamhyrWindow(ASubMainWindow, ListedSubWindow, PamhyrWindowTools):
|
|||||||
def _set_title(self):
|
def _set_title(self):
|
||||||
title = self._title
|
title = self._title
|
||||||
|
|
||||||
if self._study.is_read_only():
|
if self._study is not None:
|
||||||
title = "⛔ " + title
|
if self._study.is_read_only():
|
||||||
|
title = "⛔ " + title
|
||||||
|
|
||||||
scenario = self._study.status.scenario
|
scenario = self._study.status.scenario
|
||||||
if scenario is not None and scenario.name != "default":
|
if scenario is not None and scenario.name != "default":
|
||||||
title += f" | {scenario.name}"
|
title += f" | {scenario.name}"
|
||||||
|
|
||||||
self.ui.setWindowTitle(title)
|
self.ui.setWindowTitle(title)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user