Commit 92af9696 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix sleep and hibernate actions

We no longer use wayland to forward sleep and hibernate requests.
parent aafe47b0
......@@ -469,7 +469,7 @@ void UnlockApp::suspendToRam()
m_ignoreRequests = true;
m_resetRequestIgnoreTimer->start();
org_kde_ksld_suspendSystem(m_ksldInterface);
PowerManagement::instance()->suspend();
}
void UnlockApp::suspendToDisk()
......@@ -481,7 +481,7 @@ void UnlockApp::suspendToDisk()
m_ignoreRequests = true;
m_resetRequestIgnoreTimer->start();
org_kde_ksld_hibernateSystem(m_ksldInterface);
PowerManagement::instance()->hibernate();
}
void UnlockApp::setTesting(bool enable)
......
Markdown is supported
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