Wrong if condition to mute kmix
This commit is contained in:
parent
baa0e5ff95
commit
de252af3a6
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ bool PauseMusicPlugin::receivePackage(const NetworkPackage& np)
|
|||
if (pauseConditionFulfilled) {
|
||||
if (use_mute) {
|
||||
QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction");
|
||||
if (isKMixMuted()) {
|
||||
pausedSources.insert("mute");
|
||||
if (!isKMixMuted()) {
|
||||
pausedSources.insert("mute"); //Fake source
|
||||
kmixInterface.call("trigger");
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue