[Powerdevil runner] Make Sleep/Suspend command work again

BUG: 408735
FIXED-IN: 5.16.1
wilder-5.19
Nate Graham 7 years ago
parent f65a0eee09
commit 6a5a38f128
  1. 2
      runners/powerdevil/PowerDevilRunner.cpp

@ -249,7 +249,7 @@ void PowerDevilRunner::run(const Plasma::RunnerContext &context, const Plasma::Q
} else if (match.id() == QLatin1String("PowerDevil_DimHalf")) {
QDBusReply<int> brightness = brightnessIface.asyncCall(QStringLiteral("brightness"));
brightnessIface.asyncCall(QStringLiteral("setBrightness"), static_cast<int>(brightness / 2));
} else if (match.id().startsWith(QLatin1String("PowerDevil_Suspend"))) {
} else if (match.id().startsWith(QLatin1String("PowerDevil_Sleep"))) {
switch ((Solid::PowerManagement::SleepState)match.data().toInt()) {
case Solid::PowerManagement::SuspendState:
case Solid::PowerManagement::StandbyState:

Loading…
Cancel
Save