Commit 0bb002a8 authored by Nick Draper's avatar Nick Draper
Browse files

Show the workspace name on top of the sliceviewer

reapplying changes on top of master
parent b2b8f9b2
......@@ -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):
......
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