mpriscontrolplugin-win: send -1 volume to show per-app volume control is not supported

This commit is contained in:
Piyush Aggarwal 2021-06-22 08:17:16 +05:30
parent fb8646b309
commit a59ea0e9b8

View file

@ -301,7 +301,8 @@ bool MprisControlPlugin::receivePacket(const NetworkPacket &np)
somethingToSend = true;
}
if (np.get<bool>(QStringLiteral("requestVolume"))) {
answer.set(QStringLiteral("volume"), 100);
// we don't support setting per-app volume levels yet
answer.set(QStringLiteral("volume"), -1);
somethingToSend = true;
}