From 11592e6eaecb4c1b921287b9ba596c062f025c79 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 19 Mar 2021 16:55:40 -0700 Subject: [PATCH] Fix scripting window issue not saving settings --- scripting/kicad_pyshell/kicad_pyeditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/kicad_pyshell/kicad_pyeditor.py b/scripting/kicad_pyshell/kicad_pyeditor.py index d61c02a82e..272c96640a 100644 --- a/scripting/kicad_pyshell/kicad_pyeditor.py +++ b/scripting/kicad_pyshell/kicad_pyeditor.py @@ -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)