Commit 33746fa4 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Logout Dialog] Add "Hibernate" option

We offer both Suspend and Hibernate in the application launcher so we should do the same here

BUG: 398184
FIXED-IN: 5.14.0

Differential Revision:
parent 0a56e67c
......@@ -49,6 +49,10 @@ PlasmaCore.ColorScope {
function sleepRequested() {
function hibernateRequested() {
property real timeout: 30
property real remainingTime: root.timeout
......@@ -159,15 +163,24 @@ PlasmaCore.ColorScope {
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Suspend")
action: root.sleepRequested
KeyNavigation.left: logoutButton
KeyNavigation.right: rebootButton
KeyNavigation.right: hibernateButton
visible: spdMethods.SuspendState
LogoutButton {
id: hibernateButton
iconSource: "system-suspend-hibernate"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Hibernate")
action: root.hibernateRequested
KeyNavigation.left: suspendButton
KeyNavigation.right: rebootButton
visible: spdMethods.HibernateState
LogoutButton {
id: rebootButton
iconSource: "system-reboot"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Reboot")
action: root.rebootRequested
KeyNavigation.left: suspendButton
KeyNavigation.left: hibernateButton
KeyNavigation.right: shutdownButton
focus: sdtype == ShutdownType.ShutdownTypeReboot
visible: maysd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment