bug with clearing history fixed, close to tray on esc

This commit is contained in:
ingvar1995 2016-05-08 00:47:10 +03:00
parent 8df2e3ebce
commit 78c376a0b0
3 changed files with 9 additions and 1 deletions

View file

@ -117,6 +117,8 @@ class Toxygen(object):
if not self.ms.isActiveWindow():
self.ms.setWindowState(self.ms.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
self.ms.activateWindow()
if self.ms.isHidden():
self.ms.show()
m.connect(show, QtCore.SIGNAL("triggered()"), show_window)
m.connect(exit, QtCore.SIGNAL("triggered()"), lambda: app.exit())