system: Fix visibility of suspend button
It depends on the availability of suspend, not shutdown ...
This commit is contained in:
parent
b7d2191059
commit
a63821a57f
@ -285,7 +285,7 @@ const Indicator = new Lang.Class({
|
|||||||
let disabled = Main.sessionMode.isLocked ||
|
let disabled = Main.sessionMode.isLocked ||
|
||||||
(Main.sessionMode.isGreeter &&
|
(Main.sessionMode.isGreeter &&
|
||||||
this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
|
this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
|
||||||
this._suspendAction.visible = this._haveShutdown && !disabled;
|
this._suspendAction.visible = this._haveSuspend && !disabled;
|
||||||
this._updateActionsVisibility();
|
this._updateActionsVisibility();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user