Commit 4ab0cb74 authored by Dan Pascu's avatar Dan Pascu

Simplified code

parent 5990e409
......@@ -188,9 +188,9 @@ class Blink(QApplication):
@run_in_gui_thread
def _NH_SIPApplicationDidStart(self, notification):
account_manager = AccountManager()
self.fetch_account()
if account_manager.get_accounts() == [] or (self.first_run and account_manager.get_accounts() == [BonjourAccount()]):
accounts = AccountManager().get_accounts()
if not accounts or (self.first_run and accounts==[BonjourAccount()]):
self.main_window.add_account_dialog.open_for_create()
self.main_window.show()
self.update_manager.initialize()
......
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