chiark / gitweb /
Don't save window size/pos on exit if minimized
authorsmorloc <smorloc@gmail.com>
Sat, 19 Jan 2013 02:40:19 +0000 (21:40 -0500)
committersmorloc <smorloc@gmail.com>
Sat, 19 Jan 2013 02:40:36 +0000 (21:40 -0500)
Cura/gui/mainWindow.py

index 1a0d7d1694dc9216dfe44c0a9920b29d1c53636c..68aea1b427f98f4c0a75a9bc1a3a7d7e71163f2e 100644 (file)
@@ -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)