[OSD] Display "%1 Muted" for media players with volume down to 0
This commit is contained in:
parent
fe5c5f4e6c
commit
203f4a5049
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user