make displaying volume level in statusbar optional

This commit is contained in:
Andrzej Rybczak
2010-02-26 21:37:48 +01:00
parent 358d21addf
commit 6df8ae1694
5 changed files with 12 additions and 1 deletions

View File

@@ -600,7 +600,7 @@ void NcmpcppStatusChanged(MPD::Connection *, MPD::StatusChanges changed, void *)
refresh();
}
}
if (changed.Volume && (Config.header_visibility || Config.new_design))
if (changed.Volume && Config.display_volume_level && (Config.header_visibility || Config.new_design))
{
VolumeState = Config.new_design ? " Vol: " : " Volume: ";
int volume = Mpd.GetVolume();