Unverified Commit a57d7b4f authored by Gagik Vardanyan's avatar Gagik Vardanyan Committed by GitHub
Browse files

Merge pull request #28762 from mantidproject/28514_sliceviewer_title_add_ws_name

Add workspace name to sliceviewer title bar
parents 9b4e3ffe d5aaa33d
......@@ -59,6 +59,9 @@ class SliceViewerModel:
return True
return False
def get_ws_name(self) -> str:
return self._ws.name()
def can_support_nonorthogonal_axes(self) -> bool:
"""
Query if the workspace can support non-orthogonal axes.
......
......@@ -52,6 +52,7 @@ class SliceViewer(object):
if not self.model.can_support_nonorthogonal_axes():
self.view.data_view.disable_nonorthogonal_axes_button()
self.view.setWindowTitle(f"SliceViewer - {self.model.get_ws_name()}")
self.new_plot()
def new_plot_MDH(self):
......
......@@ -465,7 +465,6 @@ class SliceViewerView(QWidget):
self.presenter = presenter
self.setWindowTitle("SliceViewer")
self.setWindowFlags(Qt.Window)
self.setAttribute(Qt.WA_DeleteOnClose, True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment