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

This commit is contained in:
Yann Leboulanger 2011-05-29 20:02:25 +02:00
parent 364ee24490
commit 5375ddfb31
1 changed files with 4 additions and 1 deletions

View File

@ -6395,7 +6395,10 @@ class RosterWindow:
gajim.config.get('trayicon') != 'always': gajim.config.get('trayicon') != 'always':
self.window.show_all() 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(): def _open_wizard():
gajim.interface.instances['account_creation_wizard'] = \ gajim.interface.instances['account_creation_wizard'] = \
config.AccountCreationWizardWindow() config.AccountCreationWizardWindow()