Skip to content
Snippets Groups Projects
Commit 59cfddc3 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix first start with no accounts

parent 714d70cb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment