Skip to content

Commit

Permalink
Merge pull request #2620 from AlessandroMattiazzi/Fix_AuiManager_miss…
Browse files Browse the repository at this point in the history
…ing_check

Added check condition to AuiManager LoadPerspective()
  • Loading branch information
swt2c authored Oct 15, 2024
2 parents 9d69e78 + 3cd2c3b commit d226fa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wx/lib/agw/aui/framemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5244,6 +5244,10 @@ def LoadPerspective(self, layout, update=True, restorecaption=False,
saveCapt = {} # see restorecaption param
saveIcon = {} # icons are not preserved by perspectives, so preserve them
saveMinimize = {} # see restoreminimize param

if not self._notebooks:
self.DoUpdate()

for pane in self._panes:

# dock the notebook pages
Expand Down

0 comments on commit d226fa3

Please sign in to comment.