Skip to content
Commit 6435930d authored by Jakob Petsovits's avatar Jakob Petsovits
Browse files

Rename PowerButtonAction enum values to Sleep and Hibernate

SuspendToRam is not entirely accurate anymore, because depending on
user configuration, Sleep can mean SuspendToRam, HybridSuspend or
SuspendThenHibernate.

Hibernate is also used around the codebase already, renaming it
from SuspendToDisk improves consistency across PowerDevil.

Boolean variables are adapted in the same way. However, where checks
for PowerManagement::canSuspend() are involved, we stick to the
canSuspend name rather than canSleep.

There are still D-Bus methods named suspendToRam and suspendToDisk
provided by the SuspendSession action. I left those untouched
because I'm not sure what users are out in the wild.
parent 93149a6d
Pipeline #533117 passed with stage
in 1 minute and 18 seconds
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