Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PowerDevil
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
19
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Plasma
PowerDevil
Commits
e9192c7e
Commit
e9192c7e
authored
9 years ago
by
Kai Uwe Broulik
🍇
Browse files
Options
Downloads
Patches
Plain Diff
Don't suspend when shutting down
BUG: 189456 FIXED-IN: 5.3.0
parent
fdb41345
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/actions/bundled/suspendsession.cpp
+16
-15
16 additions, 15 deletions
daemon/actions/bundled/suspendsession.cpp
with
16 additions
and
15 deletions
daemon/actions/bundled/suspendsession.cpp
+
16
−
15
View file @
e9192c7e
...
...
@@ -105,23 +105,24 @@ void SuspendSession::onProfileLoad()
// Nothing to do
}
void
SuspendSession
::
triggerImpl
(
const
QVariantMap
&
args
)
void
SuspendSession
::
triggerImpl
(
const
QVariantMap
&
args
)
{
qCDebug
(
POWERDEVIL
)
<<
"
T
riggered with
"
<<
args
;
qCDebug
(
POWERDEVIL
)
<<
"
Suspend session t
riggered with"
<<
args
;
// Switch for screen fading
switch
((
Mode
)
(
args
[
"Type"
].
toUInt
()))
{
case
ToRamMode
:
case
ToDiskMode
:
case
SuspendHybridMode
:
if
(
!
args
[
"SkipFade"
].
toBool
())
{
m_savedArgs
=
args
;
m_fadeEffect
->
start
();
return
;
}
break
;
default
:
break
;
const
auto
mode
=
static_cast
<
Mode
>
(
args
[
"Type"
].
toUInt
());
if
(
mode
==
ToRamMode
||
mode
==
ToDiskMode
||
mode
==
SuspendHybridMode
)
{
// don't suspend if shutting down
if
(
KWorkSpace
::
isShuttingDown
())
{
qCDebug
(
POWERDEVIL
)
<<
"Not suspending because a shutdown is in progress"
;
return
;
}
if
(
!
args
[
"SkipFade"
].
toBool
())
{
m_savedArgs
=
args
;
m_fadeEffect
->
start
();
return
;
}
}
if
(
args
[
"GraceFade"
].
toBool
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment