GTK UI menubar accounts retrieval.
Only ask for known accounts if we have the required level for it.
This commit is contained in:
parent
ffd344d0b5
commit
3b8ebf68a6
|
@ -213,6 +213,7 @@ class MenuBar(component.Component):
|
||||||
# demon.
|
# demon.
|
||||||
self.menuitem_change_owner.set_visible(False)
|
self.menuitem_change_owner.set_visible(False)
|
||||||
|
|
||||||
|
if client.get_auth_level() == deluge.common.AUTH_LEVEL_ADMIN:
|
||||||
# Get Known accounts to allow chaning ownership
|
# Get Known accounts to allow chaning ownership
|
||||||
client.core.get_known_accounts().addCallback(
|
client.core.get_known_accounts().addCallback(
|
||||||
self._on_known_accounts).addErrback(self._on_known_accounts_fail
|
self._on_known_accounts).addErrback(self._on_known_accounts_fail
|
||||||
|
|
Loading…
Reference in New Issue