Added check_condition

Checking if self.notebooks is populated, if not call the function responsible for it
This commit is contained in:
Alessandro Mattiazzi
2024-10-08 15:06:48 +02:00
parent b6b28eeca5
commit 3cd2c3b1e5

View File

@@ -5244,6 +5244,10 @@ class AuiManager(wx.EvtHandler):
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