Skip to content

Commit

Permalink
Fix double click on system tray icon in other desktop environments th…
Browse files Browse the repository at this point in the history
…an KDE 5 (Plasma 5)
  • Loading branch information
xmikos committed Mar 12, 2015
1 parent bf5bf5c commit 9af3c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qopenvpn/qopenvpn.py
Expand Up @@ -204,7 +204,7 @@ def logs(self):

def icon_activated(self, reason):
"""Start or stop OpenVPN by double-click on tray icon"""
if reason == QtGui.QSystemTrayIcon.Trigger:
if reason == QtGui.QSystemTrayIcon.Trigger or reason == QtGui.QSystemTrayIcon.DoubleClick:
if self.icon_doubleclick_timer.isActive():
self.icon_doubleclick_timer.stop()
if self.vpn_enabled:
Expand Down

0 comments on commit 9af3c7e

Please sign in to comment.