[OSD] Display "%1 Muted" for media players with volume down to 0

This commit is contained in:
Martin Klapetek 2014-01-28 17:07:50 +01:00
parent fe5c5f4e6c
commit 203f4a5049

View File

@ -77,7 +77,11 @@ void Osd::volumeChanged(int percent)
void Osd::mediaPlayerVolumeChanged(int percent, const QString &playerName, const QString &playerIconName)
{
showProgress(playerIconName, percent, playerName);
if (percent == 0) {
showText(playerIconName, i18nc("OSD informing that some media app is muted, eg. Amarok Muted", "%1 Muted", playerName));
} else {
showProgress(playerIconName, percent, playerName);
}
}
void Osd::kbdLayoutChanged(const QString &layoutName)