Commit 348804bb authored by Dan Pascu's avatar Dan Pascu

Made statement more readable and more efficient

parent 85fd0541
...@@ -529,7 +529,7 @@ class MainWindow(base_class, ui_class): ...@@ -529,7 +529,7 @@ class MainWindow(base_class, ui_class):
account_manager = AccountManager() account_manager = AccountManager()
notification_center = NotificationCenter() notification_center = NotificationCenter()
notification_center.add_observer(self, sender=account_manager) notification_center.add_observer(self, sender=account_manager)
if all(not account.enabled for account in account_manager.iter_accounts()): if not any(account.enabled for account in account_manager.iter_accounts()):
self.display_name.setEnabled(False) self.display_name.setEnabled(False)
self.activity_note.setEnabled(False) self.activity_note.setEnabled(False)
self.status.setEnabled(False) self.status.setEnabled(False)
......
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