don't go autoaway when screensaver is activated is user disabled the autoaway option. Fixes #3824

This commit is contained in:
Yann Leboulanger 2008-04-10 14:47:12 +00:00
parent b04d6aea63
commit bdac12d789
1 changed files with 3 additions and 0 deletions

View File

@ -2930,6 +2930,9 @@ class Interface:
def gnome_screensaver_ActiveChanged_cb(active): def gnome_screensaver_ActiveChanged_cb(active):
if not active: if not active:
return return
if not gajim.config.get('autoaway'):
# Don't go auto away if user disabled the option
return
for account in gajim.connections: for account in gajim.connections:
if not gajim.sleeper_state.has_key(account) or \ if not gajim.sleeper_state.has_key(account) or \
not gajim.sleeper_state[account]: not gajim.sleeper_state[account]: