Only run DoUpdate if the managed window exists.

This commit is contained in:
Paul McCarthy
2017-05-29 22:40:23 +01:00
parent 6eca1e7e23
commit a28b4cc1fa

View File

@@ -6360,6 +6360,10 @@ class AuiManager(wx.EvtHandler):
must be called. This construction allows pane flicker to be avoided by updating
the whole layout at one time.
"""
if not self.GetManagedWindow():
return
if '__WXGTK__' in wx.PlatformInfo:
self.GetManagedWindow().Freeze()
self._hover_button = None