system: Fix visibility of suspend button

It depends on the availability of suspend, not shutdown ...
This commit is contained in:
Florian Müllner 2015-02-04 12:01:47 +01:00
parent 7b31d2146a
commit c647be375a

View File

@ -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();
}, },