loginDialog: avoid blinking user list when disable-user-list=true
Right now if disable-user-list is true we show it briefly, just so that we can fade it out to the user entry. This commit avoids the fade in that case. https://bugzilla.gnome.org/show_bug.cgi?id=704471
This commit is contained in:
parent
bcd1c793ea
commit
e5e3f3c299
@ -449,7 +449,8 @@ const LoginDialog = new Lang.Class({
|
|||||||
Lang.bind(this, this._updateLogoTexture));
|
Lang.bind(this, this._updateLogoTexture));
|
||||||
|
|
||||||
this._userSelectionBox = new St.BoxLayout({ style_class: 'login-dialog-user-selection-box',
|
this._userSelectionBox = new St.BoxLayout({ style_class: 'login-dialog-user-selection-box',
|
||||||
vertical: true });
|
vertical: true,
|
||||||
|
visible: false });
|
||||||
this._userSelectionBox.add_constraint(new Clutter.AlignConstraint({ source: this.actor,
|
this._userSelectionBox.add_constraint(new Clutter.AlignConstraint({ source: this.actor,
|
||||||
align_axis: Clutter.AlignAxis.BOTH,
|
align_axis: Clutter.AlignAxis.BOTH,
|
||||||
factor: 0.5 }));
|
factor: 0.5 }));
|
||||||
@ -1127,7 +1128,8 @@ const LoginDialog = new Lang.Class({
|
|||||||
|
|
||||||
_hideUserListAndLogIn: function() {
|
_hideUserListAndLogIn: function() {
|
||||||
this._setUserListExpanded(false);
|
this._setUserListExpanded(false);
|
||||||
GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
|
if (this._userSelectionBox.visible)
|
||||||
|
GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
|
||||||
this._askForUsernameAndLogIn();
|
this._askForUsernameAndLogIn();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user