Make sure the window is not iconized before saving position and size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fd04159e75
commit
3429f8d028
@ -798,13 +798,14 @@ Homepage: http://xrced.sourceforge.net\
|
||||
panel.cacheParent.Destroy()
|
||||
if not panel.GetPageCount() == 2:
|
||||
panel.page2.Destroy()
|
||||
conf.x, conf.y = self.GetPosition()
|
||||
conf.width, conf.height = self.GetSize()
|
||||
if conf.embedPanel:
|
||||
conf.sashPos = self.splitter.GetSashPosition()
|
||||
else:
|
||||
conf.panelX, conf.panelY = self.miniFrame.GetPosition()
|
||||
conf.panelWidth, conf.panelHeight = self.miniFrame.GetSize()
|
||||
if not self.IsIconized():
|
||||
conf.x, conf.y = self.GetPosition()
|
||||
conf.width, conf.height = self.GetSize()
|
||||
if conf.embedPanel:
|
||||
conf.sashPos = self.splitter.GetSashPosition()
|
||||
else:
|
||||
conf.panelX, conf.panelY = self.miniFrame.GetPosition()
|
||||
conf.panelWidth, conf.panelHeight = self.miniFrame.GetSize()
|
||||
evt.Skip()
|
||||
|
||||
def Clear(self):
|
||||
|
Loading…
Reference in New Issue
Block a user