take into account only the accounts that are synced with global status to compute the global status (for status combobox)

This commit is contained in:
Yann Leboulanger 2005-12-02 19:12:21 +00:00
parent 0cd7356807
commit 51dc8afb09
1 changed files with 3 additions and 0 deletions

View File

@ -483,6 +483,9 @@ def get_output_of_command(command):
def get_global_show(): def get_global_show():
maxi = 0 maxi = 0
for account in gajim.connections: for account in gajim.connections:
if not gajim.config.get_per('accounts', account,
'sync_with_global_status'):
continue
connected = gajim.connections[account].connected connected = gajim.connections[account].connected
if connected > maxi: if connected > maxi:
maxi = connected maxi = connected