Module: deluge Branch: chunked-sessionproxy-and-gtkui-speedups Commit: 3b8ebf68a6b02dd72f4c60c533ab65e5151f37cb
Author: Pedro Algarvio <[email protected]> Date: Sun May 8 21:36:10 2011 +0100 GTK UI menubar accounts retrieval. Only ask for known accounts if we have the required level for it. --- deluge/ui/gtkui/menubar.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deluge/ui/gtkui/menubar.py b/deluge/ui/gtkui/menubar.py index dfdd7a0..32234bb 100644 --- a/deluge/ui/gtkui/menubar.py +++ b/deluge/ui/gtkui/menubar.py @@ -213,10 +213,11 @@ class MenuBar(component.Component): # demon. self.menuitem_change_owner.set_visible(False) - # Get Known accounts to allow chaning ownership - client.core.get_known_accounts().addCallback( - self._on_known_accounts).addErrback(self._on_known_accounts_fail - ) + if client.get_auth_level() == deluge.common.AUTH_LEVEL_ADMIN: + # Get Known accounts to allow chaning ownership + client.core.get_known_accounts().addCallback( + self._on_known_accounts).addErrback(self._on_known_accounts_fail + ) def stop(self): log.debug("MenuBar stopping") -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
