[gnome-shell/gnome-3-14] system: Fix visibility of suspend button



commit 0adf3b84a744f75924184a109117405383f4dd81
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 4 12:01:47 2015 +0100

    system: Fix visibility of suspend button
    
    It depends on the availability of suspend, not shutdown ...

 js/ui/status/system.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/system.js b/js/ui/status/system.js
index a2ad289..b053694 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();
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]