font and closing to tray update

This commit is contained in:
ingvar1995 2016-08-05 15:58:25 +03:00
parent 3a64121d72
commit b0e82dfd08
6 changed files with 72 additions and 31 deletions

View file

@ -239,11 +239,15 @@ class Toxygen:
self.p.show()
def tray_activated(reason):
if reason == QtGui.QSystemTrayIcon.DoubleClick:
show_window()
if reason == QtGui.QSystemTrayIcon.DoubleClick:
show_window()
def close_app():
settings.closing = True
self.ms.close()
m.connect(show, QtCore.SIGNAL("triggered()"), show_window)
m.connect(exit, QtCore.SIGNAL("triggered()"), lambda: app.exit())
m.connect(exit, QtCore.SIGNAL("triggered()"), close_app)
m.connect(m, QtCore.SIGNAL("aboutToShow()"), lambda: m.aboutToShow())
sub.connect(onl, QtCore.SIGNAL("triggered()"), lambda: m.newStatus(0))
sub.connect(away, QtCore.SIGNAL("triggered()"), lambda: m.newStatus(1))