Commit 6fa92ab8 authored by Yann Leboulanger's avatar Yann Leboulanger

[OlegOAndreev] don't popup window when we get a message ifchat window has focus. Fixes #23

parent 81100bb8
......@@ -138,7 +138,7 @@ class Triggers(GajimPlugin):
obj.sound_event = ''
obj.sound_file = rule['sound_file']
if rule['popup'] == 'no':
if rule['popup'] == 'no' or obj.control_focused:
obj.do_popup = False
elif rule['popup'] == 'yes':
obj.do_popup = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment