trayicon_notification_on_new_messages advanced setting

This commit is contained in:
Nikos Kouremenos 2005-08-11 18:23:39 +00:00
parent 128f6e1e67
commit a39e1acab6
2 changed files with 3 additions and 2 deletions

View file

@ -1144,8 +1144,8 @@ class Chat:
if text.find(self.nicks[jid]) == -1:
return
self.nb_unread[jid] += 1
if self.plugin.systray_enabled and gajim.config.get('usetabbedchat'):
# if we 'pop it up' when we receive * [n] is enough
if self.plugin.systray_enabled and gajim.config.get(
'trayicon_notification_on_new_messages'):
self.plugin.systray.add_jid(jid, self.account)
self.redraw_tab(jid)
self.show_title()

View file

@ -132,6 +132,7 @@ class Config:
# IEC standard says KiB = 1024 bytes KB = 1000 bytes
'use_kib_mib': [opt_bool, False],
'notify_on_all_muc_messages': [opt_bool, False],
'trayicon_notification_on_new_messages': [opt_bool, True],
}
__options_per_key = {