From e6179fb9535a2c77a554f57052720bd61f974bf1 Mon Sep 17 00:00:00 2001 From: sbkaf Date: Sat, 21 Feb 2015 14:24:17 +0100 Subject: [PATCH] minimize on tray icon click: enabled for linux (if removed) --- src/bitmessageqt/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index af595a48..3b424c8e 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -999,10 +999,9 @@ class MyForm(QtGui.QMainWindow): # create application indicator def appIndicatorInit(self, app): self.initTrayIcon("can-icon-24px-red.png", app) - if sys.platform[0:3] == 'win': - traySignal = "activated(QSystemTrayIcon::ActivationReason)" - QtCore.QObject.connect(self.tray, QtCore.SIGNAL( - traySignal), self.__icon_activated) + traySignal = "activated(QSystemTrayIcon::ActivationReason)" + QtCore.QObject.connect(self.tray, QtCore.SIGNAL( + traySignal), self.__icon_activated) m = QMenu()