From faf8d96b38c658de8e6aa3ccd5c2f5d7e0c811ee Mon Sep 17 00:00:00 2001 From: daid303 Date: Fri, 22 Mar 2013 13:06:32 +0100 Subject: [PATCH] Reset the window position if the window is off-screen. --- Cura/gui/mainWindow.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2