File 0001-Logout-Screen-Show-suspend-button-only-if-supported.patch of Package plasma5-workspace.openSUSE_Leap_42.2_Update

From 8bc32846a5a41fa67c106045c43bb8c4af7e7e6f Mon Sep 17 00:00:00 2001
From: Kai Uwe Broulik <kde@privat.broulik.de>
Date: Thu, 23 Feb 2017 12:30:05 +0100
Subject: [Logout Screen] Show suspend button only if supported

BUG: 376601
FIXED-IN: 5.8.7
---
 lookandfeel/contents/logout/Logout.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lookandfeel/contents/logout/Logout.qml b/lookandfeel/contents/logout/Logout.qml
index cdbdb42..839c390 100644
--- a/lookandfeel/contents/logout/Logout.qml
+++ b/lookandfeel/contents/logout/Logout.qml
@@ -122,6 +122,7 @@ PlasmaCore.ColorScope {
                 action: root.sleepRequested
                 KeyNavigation.left: logoutButton
                 KeyNavigation.right: rebootButton
+                visible: spdMethods.SuspendState
             }
             LogoutButton {
                 id: rebootButton
-- 
cgit v0.11.2

openSUSE Build Service is sponsored by