diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 49ca5ea5a..7810b03e4 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -454,18 +454,6 @@ const LoginDialog = new Lang.Class({ this.actor.add_child(this._logoBin); this._updateLogo(); - if (!this._userManager.is_loaded) - this._userManagerLoadedId = this._userManager.connect('notify::is-loaded', - Lang.bind(this, function() { - if (this._userManager.is_loaded) { - this._loadUserList(); - this._userManager.disconnect(this._userManagerLoadedId); - this._userManagerLoadedId = 0; - } - })); - else - GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, this._loadUserList)); - this._userList.connect('activate', Lang.bind(this, function(userList, item) { this._onUserListActivated(item); @@ -481,6 +469,18 @@ const LoginDialog = new Lang.Class({ this._sessionMenuButton.actor.show(); this._authPrompt.addActorToDefaultButtonWell(this._sessionMenuButton.actor); + if (!this._userManager.is_loaded) + this._userManagerLoadedId = this._userManager.connect('notify::is-loaded', + Lang.bind(this, function() { + if (this._userManager.is_loaded) { + this._loadUserList(); + this._userManager.disconnect(this._userManagerLoadedId); + this._userManagerLoadedId = 0; + } + })); + else + GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, this._loadUserList)); + }, _updateDisableUserList: function() {