From: daid303 Date: Fri, 22 Mar 2013 12:06:32 +0000 (+0100) Subject: Reset the window position if the window is off-screen. X-Git-Tag: 13.05~64^2~22 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=faf8d96b38c658de8e6aa3ccd5c2f5d7e0c811ee;p=cura.git Reset the window position if the window is off-screen. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 29b22fb3..4bfcef61 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -227,6 +227,9 @@ class mainWindow(wx.Frame): self.splitter.SplitVertically(self.leftPane, self.rightPane, self.normalSashPos) + if wx.Display.GetFromPoint(self.GetPosition()) < 0: + self.Centre() + self.updateSliceMode() self.Show(True)