fixed bugs with history loading and tray menu

This commit is contained in:
ingvar1995
2016-04-02 22:11:56 +03:00
parent c9fb52e29c
commit 90a3cc2afa
2 changed files with 11 additions and 10 deletions

View File

@@ -71,8 +71,9 @@ class Toxygen(object):
exit = m.addAction('Exit')
def show_window():
self.ms.setWindowState(self.ms.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
self.ms.activateWindow()
if not self.ms.isActiveWindow():
self.ms.setWindowState(self.ms.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
self.ms.activateWindow()
m.connect(show, QtCore.SIGNAL("triggered()"), show_window)
m.connect(exit, QtCore.SIGNAL("triggered()"), lambda: app.exit())