Skip to content
Snippets Groups Projects
Commit 32eaa321 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

left click on systray under windows show pending events if there are. fixes #4167

parent 4eebf0e0
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,11 @@ class StatusIcon(systray.Systray):
self.status_icon.set_visible(False)
self.unsubscribe_events()
def on_status_icon_left_clicked(self, widget):
self.on_left_click()
def on_status_icon_left_clicked(self, widget):
if len(gajim.events.get_systray_events()) == 0:
self.on_left_click()
else:
self.on_middle_click()
def set_img(self):
'''apart from image, we also update tooltip text here'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment