Fix scripting window issue not saving settings

This commit is contained in:
Seth Hillbrand 2021-03-19 16:55:40 -07:00
parent adf885b667
commit 11592e6eae
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@ class KiCadPyFrame():
# TODO: track position/size so we can save it even if the
# frame is maximized or iconized.
if not self.iconized and not self.IsMaximized():
if not self.iconized and not self.parent.IsMaximized():
w, h = self.GetSize()
config.WriteInt('Window/Width', w)
config.WriteInt('Window/Height', h)