fixed bugs with history loading and tray menu
This commit is contained in:
parent
c9fb52e29c
commit
90a3cc2afa
2 changed files with 11 additions and 10 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue