Skip to content

Commit

Permalink
FIX: Issue with the volume viewer locking into maximized state with n…
Browse files Browse the repository at this point in the history
…o way to restore it
  • Loading branch information
henrikkauppi committed Nov 15, 2024
1 parent 0c64623 commit 3ef489d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions invesalius/gui/default_viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def RestoreViewerVolume(self):
self.aui_manager.Update()

def MaximizeViewerVolume(self):
# Restore volume viewer to make sure it is not already maximized before attempting to maximize it
# to fix the issue with panes locking into the maximized state where they cannot be restored
self.RestoreViewerVolume()
self.aui_manager.MaximizePane(
self.aui_manager.GetAllPanes()[-1]
) # Viewer volume is the last pane
Expand Down

0 comments on commit 3ef489d

Please sign in to comment.