From 0adf3b84a744f75924184a109117405383f4dd81 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 a2ad289ef..b05369403 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(); },