Commit 59cfddc3 authored by Philipp Hörist's avatar Philipp Hörist

Fix first start with no accounts

parent 714d70cb
......@@ -356,10 +356,10 @@ class GajimApplication(Gtk.Application):
self.add_action(act)
accounts_list = sorted(app.config.get_per('accounts'))
if not accounts_list:
return
if 'Local' in accounts_list:
accounts_list.remove('Local')
if not accounts_list:
return
if len(accounts_list) > 1:
for acc in accounts_list:
self.add_account_actions(acc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment