Skip to content

Commit

Permalink
Merge pull request #3115 from SasView/3114-orientation-viewer-doesnt-…
Browse files Browse the repository at this point in the history
…clear-itself-on-wayland

3114 orientation viewer doesnt clear itself on wayland
  • Loading branch information
krzywon authored Oct 8, 2024
2 parents 95b4fb8 + 7c23989 commit 2c8117c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sas/qtgui/MainWindow/GuiManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,12 @@ def addTriggers(self):
self._workspace.actionStartup_Settings.setVisible(False)
#self._workspace.actionImage_Viewer.setVisible(False)
self._workspace.actionCombine_Batch_Fit.setVisible(False)
# orientation viewer set to invisible SASVIEW-1132
self._workspace.actionOrientation_Viewer.setVisible(True)

# Show orientation viewer menu item only if not running Linux/Wayland
if "XDG_SESSION_TYPE" in os.environ and os.environ["XDG_SESSION_TYPE"] == "wayland":
self._workspace.actionOrientation_Viewer.setVisible(False)
else:
self._workspace.actionOrientation_Viewer.setVisible(True)

# File
self._workspace.actionLoadData.triggered.connect(self.actionLoadData)
Expand Down

0 comments on commit 2c8117c

Please sign in to comment.