loginDialog: move prompt hiding code to hidePrompt

The sessionList and the prompt hint are all really
part of the prompt, so we should have the code that
hides those things in hidePrompt instead of in
showUserList.

This commit does that.

https://bugzilla.gnome.org/show_bug.cgi?id=694062
This commit is contained in:
Ray Strode 2013-02-17 20:41:40 -05:00
parent d124ca377f
commit 963e808d98

View File

@ -850,6 +850,9 @@ const LoginDialog = new Lang.Class({
this._updateSensitivity(true);
this._promptEntry.set_text('');
this._sessionList.close();
this._promptLoginHint.hide();
this.clearButtons();
this._workSpinner = null;
this._signInButton = null;
@ -1075,8 +1078,6 @@ const LoginDialog = new Lang.Class({
_showUserList: function() {
this._hidePrompt();
this._sessionList.close();
this._promptLoginHint.hide();
this._userList.actor.show();
this._userList.actor.opacity = 255;
this._notListedButton.show();