Commit 59d6f971 authored by Saul Ibarra's avatar Saul Ibarra

Fixed enabling Bonjour account item in the menu

parent bd90aa4d
......@@ -529,7 +529,7 @@ class MainWindow(base_class, ui_class):
for account in account_manager.iter_accounts():
action = QAction(account.id if account is not BonjourAccount() else u'Bonjour', None)
action.setCheckable(True)
action.setEnabled(True if account is not BonjourAccount() else account.enabled)
action.setEnabled(True if account is not BonjourAccount() else BonjourAccount.mdns_available)
action.setData(QVariant(account))
action.setChecked(account.enabled)
action.triggered.connect(partial(self._AH_AccountActionTriggered, action))
......
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