From: smorloc Date: Sat, 19 Jan 2013 02:40:19 +0000 (-0500) Subject: Don't save window size/pos on exit if minimized X-Git-Tag: 13.03~92^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=94411ae7e50b229d313817a6a810df49dcce188e;p=cura.git Don't save window size/pos on exit if minimized --- 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)