Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KDE Connect
Commits
6a018fa2
Commit
6a018fa2
authored
Sep 10, 2020
by
Nicolas Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix windows build
parent
400c800d
Pipeline
#33737
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
plugins/pausemusic/pausemusicplugin-win.cpp
plugins/pausemusic/pausemusicplugin-win.cpp
+8
-8
No files found.
plugins/pausemusic/pausemusicplugin-win.cpp
View file @
6a018fa2
...
...
@@ -41,25 +41,25 @@ PauseMusicPlugin::~PauseMusicPlugin()
bool
PauseMusicPlugin
::
receivePacket
(
const
NetworkPacket
&
np
)
{
bool
pauseOnlyWhenTalking
=
config
()
->
get
(
QStringLiteral
(
"conditionTalking"
),
false
);
bool
pauseOnlyWhenTalking
=
config
()
->
get
Bool
(
QStringLiteral
(
"conditionTalking"
),
false
);
if
(
pauseOnlyWhenTalking
)
{
if
(
np
.
get
<
Q
String
>
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"talking"
))
{
if
(
np
.
getString
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"talking"
))
{
return
true
;
}
}
else
{
if
(
np
.
get
<
Q
String
>
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"ringing"
)
&&
np
.
get
<
Q
String
>
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"talking"
))
{
if
(
np
.
getString
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"ringing"
)
&&
np
.
getString
(
QStringLiteral
(
"event"
))
!=
QLatin1String
(
"talking"
))
{
return
true
;
}
}
bool
pauseConditionFulfilled
=
!
np
.
get
<
b
ool
>
(
QStringLiteral
(
"isCancel"
));
bool
pauseConditionFulfilled
=
!
np
.
get
B
ool
(
QStringLiteral
(
"isCancel"
));
bool
pause
=
config
()
->
get
(
QStringLiteral
(
"actionPause"
),
false
);
bool
mute
=
config
()
->
get
(
QStringLiteral
(
"actionMute"
),
true
);
bool
pause
=
config
()
->
get
Bool
(
QStringLiteral
(
"actionPause"
),
false
);
bool
mute
=
config
()
->
get
Bool
(
QStringLiteral
(
"actionMute"
),
true
);
const
bool
autoResume
=
config
()
->
get
(
QStringLiteral
(
"actionResume"
),
true
);
const
bool
autoResume
=
config
()
->
get
Bool
(
QStringLiteral
(
"actionResume"
),
true
);
if
(
pauseConditionFulfilled
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment