From b1d32661fc0cd81a8f9a289943c393ef2bf3bb8d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 6 Sep 2006 20:15:06 +0000 Subject: [PATCH] fix logic for showing notification window --- src/common/helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index 18c8bab16..1226f2cd5 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -739,8 +739,10 @@ first = True): return True if popup == 'no': return False - if type and not gajim.config.get(type) and first: + if type and (not gajim.config.get(type) or not first): return False + if type and gajim.config.get(type) and first: + return True if gajim.config.get('autopopupaway'): # always show notification return True if gajim.connections[account].connected in (2, 3): # we're online or chat