From 94411ae7e50b229d313817a6a810df49dcce188e Mon Sep 17 00:00:00 2001 From: smorloc Date: Fri, 18 Jan 2013 21:40:19 -0500 Subject: [PATCH] Don't save window size/pos on exit if minimized --- Cura/gui/mainWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 1a0d7d16..68aea1b4 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -509,7 +509,7 @@ class mainWindow(wx.Frame): # Save the window position, size & state from the preferences file profile.putPreference('window_maximized', self.IsMaximized()) - if not self.IsMaximized(): + if not self.IsMaximized() and not self.IsIconized(): (posx, posy) = self.GetPosition() profile.putPreference('window_pos_x', posx) profile.putPreference('window_pos_y', posy) -- 2.30.2