Main Window raising fixes
On OSX and linux, the tray icon now raises window. Starting a new instance should raise the window too, but it may not work on linux (on my Ubuntu it just flashes the icon) Fixes Bitmessage#743
This commit is contained in:
parent
9a789c4e24
commit
88ce2c43fb
|
@ -841,6 +841,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.show()
|
self.show()
|
||||||
self.setWindowState(
|
self.setWindowState(
|
||||||
self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
|
self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
|
||||||
|
self.raise_()
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
|
|
||||||
# pointer to the application
|
# pointer to the application
|
||||||
|
@ -857,7 +858,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
return
|
return
|
||||||
if not self.actionShow.isChecked():
|
if not self.actionShow.isChecked():
|
||||||
self.actionShow.setChecked(True)
|
self.actionShow.setChecked(True)
|
||||||
self.appIndicatorShowOrHideWindow()
|
self.appIndicatorShowOrHideWindow()
|
||||||
|
|
||||||
# unchecks the show item on the application indicator
|
# unchecks the show item on the application indicator
|
||||||
def appIndicatorHide(self):
|
def appIndicatorHide(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user