Browse Source

Merge pull request #644 from wozz/raise_window

Fix OS X issue: window start in foreground
283
ThomasV 11 years ago
parent
commit
60bea77d1e
  1. 4
      gui/qt/main_window.py

4
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)

Loading…
Cancel
Save