mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
loginDialog: Fix session button can be clicked
When session menu button is hidden, button can be clicked and show popup menu. https://bugzilla.gnome.org/show_bug.cgi?id=781482
This commit is contained in:
parent
1508d76d32
commit
fcbb942e24
1 changed files with 6 additions and 3 deletions
|
|
@ -775,10 +775,12 @@ const LoginDialog = new Lang.Class({
|
|||
},
|
||||
|
||||
_onPrompted: function() {
|
||||
this._sessionMenuButton.updateSensitivity(true);
|
||||
|
||||
if (this._shouldShowSessionMenuButton())
|
||||
if (this._shouldShowSessionMenuButton()) {
|
||||
this._sessionMenuButton.updateSensitivity(true);
|
||||
this._authPrompt.setActorInDefaultButtonWell(this._sessionMenuButton.actor);
|
||||
} else {
|
||||
this._sessionMenuButton.updateSensitivity(false);
|
||||
}
|
||||
this._showPrompt();
|
||||
},
|
||||
|
||||
|
|
@ -881,6 +883,7 @@ const LoginDialog = new Lang.Class({
|
|||
}));
|
||||
this._updateCancelButton();
|
||||
|
||||
this._sessionMenuButton.updateSensitivity(false);
|
||||
this._authPrompt.updateSensitivity(true);
|
||||
this._showPrompt();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue