chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be162a
)
Reset the window position if the window is off-screen.
author
daid303
<daid303@gmail.com>
Fri, 22 Mar 2013 12:06:32 +0000
(13:06 +0100)
committer
daid303
<daid303@gmail.com>
Fri, 22 Mar 2013 12:06:32 +0000
(13:06 +0100)
Cura/gui/mainWindow.py
patch
|
blob
|
history
diff --git
a/Cura/gui/mainWindow.py
b/Cura/gui/mainWindow.py
index 29b22fb35ee029a6cbf98079f424933013e946a5..4bfcef61b1e4c04756af249f53591577b855d98f 100644
(file)
--- 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)