From a63821a57f850ae4b2c763ecebb2a565d4eec126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 4 Feb 2015 12:01:47 +0100 Subject: [PATCH] system: Fix visibility of suspend button It depends on the availability of suspend, not shutdown ... --- js/ui/status/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/system.js b/js/ui/status/system.js index f13ad51bd..d474e59dc 100644 --- a/js/ui/status/system.js +++ b/js/ui/status/system.js @@ -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(); },