mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: reset screen and sleep cookies
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bf8de7389f
commit
1332e8a218
1 changed files with 6 additions and 2 deletions
|
@ -1546,11 +1546,15 @@ void PresentationWidget::allowPowerManagement()
|
|||
{
|
||||
// Remove cookies
|
||||
if (m_screenInhibitCookie) {
|
||||
Solid::PowerManagement::stopSuppressingScreenPowerManagement(m_screenInhibitCookie);
|
||||
if (Solid::PowerManagement::stopSuppressingScreenPowerManagement(m_screenInhibitCookie)) {
|
||||
m_screenInhibitCookie = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_sleepInhibitCookie) {
|
||||
Solid::PowerManagement::stopSuppressingSleep(m_sleepInhibitCookie);
|
||||
if (Solid::PowerManagement::stopSuppressingSleep(m_sleepInhibitCookie)) {
|
||||
m_sleepInhibitCookie = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue