From cf0b6dda257efb64b55a792eee8a8e89d4baff2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 16 Mar 2012 22:47:42 +0100 Subject: [PATCH] userMenu: Consider account-validity for sensitivity We currently only update the status chooser's sensitivity if accounts are added, removed or enabled; unfortunately during account creation, the account may become enabled before it is actually valid, so the status chooser remains insensitive. Fix by listening to validity changes as well. https://bugzilla.gnome.org/show_bug.cgi?id=672265 --- js/ui/userMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index 86c10e5f5..489489203 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -165,6 +165,8 @@ const IMStatusChooserItem = new Lang.Class({ Lang.bind(this, this._IMAccountsChanged)); this._accountMgr.connect('account-removed', Lang.bind(this, this._IMAccountsChanged)); + this._accountMgr.connect('account-validity-changed', + Lang.bind(this, this._IMAccountsChanged)); this._accountMgr.prepare_async(null, Lang.bind(this, function(mgr) { let [presence, status, msg] = mgr.get_most_available_presence();