don't show accounts wizzard if we have configured accounts that are disabled

Ten commit jest zawarty w:
Yann Leboulanger 2011-05-29 20:02:25 +02:00
rodzic 364ee24490
commit 5375ddfb31

Wyświetl plik

@ -6395,7 +6395,10 @@ class RosterWindow:
gajim.config.get('trayicon') != 'always':
self.window.show_all()
if len(gajim.connections) == 0: # if we have no account
if not gajim.config.get_per('accounts') or \
gajim.config.get_per('accounts') == ['Local'] and not \
gajim.config.get_per('accounts', 'Local', 'active'):
# if we have no account configured or only Local account but not enabled
def _open_wizard():
gajim.interface.instances['account_creation_wizard'] = \
config.AccountCreationWizardWindow()