mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
system: Fix visibility of suspend button
It depends on the availability of suspend, not shutdown ...
This commit is contained in:
parent
b7d2191059
commit
a63821a57f
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ const Indicator = new Lang.Class({
|
|||
let disabled = Main.sessionMode.isLocked ||
|
||||
(Main.sessionMode.isGreeter &&
|
||||
this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
|
||||
this._suspendAction.visible = this._haveShutdown && !disabled;
|
||||
this._suspendAction.visible = this._haveSuspend && !disabled;
|
||||
this._updateActionsVisibility();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue