commit 60bea77d1ec432fb978803a11cc2f6de1c36c295
parent c24482c21a7df7e7dc9d1027a738acfa49044a7e
Author: ThomasV <thomasv1@gmx.de>
Date: Sat, 5 Apr 2014 11:52:48 +0200
Merge pull request #644 from wozz/raise_window
Fix OS X issue: window start in foreground
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -113,6 +113,7 @@ class ElectrumWindow(QMainWindow):
if reason == QSystemTrayIcon.DoubleClick:
if self.isMinimized() or self.isHidden():
self.show()
+ self.raise_()
else:
self.hide()
@@ -201,11 +202,13 @@ class ElectrumWindow(QMainWindow):
self.config.set_key('lite_mode', False, True)
self.mini.hide()
self.show()
+ self.raise_()
def go_lite(self):
self.config.set_key('lite_mode', True, True)
self.hide()
self.mini.show()
+ self.mini.raise_()
def init_lite(self):
@@ -218,6 +221,7 @@ class ElectrumWindow(QMainWindow):
sys.exit(0)
self.mini = None
self.show()
+ self.raise_()
return
actuator = lite_window.MiniActuator(self)