- vfd: re-add by mistake removed setting "off" for statusbar

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-13 21:17:37 +01:00
committed by Thilo Graf
parent 742d2c68ce
commit a62267196f

View File

@@ -429,6 +429,9 @@ void CVFD::showVolume(const char vol, const bool force_update)
return; return;
volume = vol; volume = vol;
if (g_settings.lcd_setting[SNeutrinoSettings::LCD_SHOW_VOLUME] == 2 /* off */)
return;
bool allowed_mode = (mode == MODE_TVRADIO || mode == MODE_AUDIO || mode == MODE_MENU_UTF8); bool allowed_mode = (mode == MODE_TVRADIO || mode == MODE_AUDIO || mode == MODE_MENU_UTF8);
if (!allowed_mode) if (!allowed_mode)
return; return;
@@ -467,6 +470,9 @@ void CVFD::showPercentOver(const unsigned char perc, const bool /*perform_update
if (mode == MODE_AUDIO && origin != MODE_AUDIO) // exclusive access for audio mode if (mode == MODE_AUDIO && origin != MODE_AUDIO) // exclusive access for audio mode
return; return;
if (g_settings.lcd_setting[SNeutrinoSettings::LCD_SHOW_VOLUME] == 2 /* off */)
return;
bool allowed_mode = (mode == MODE_TVRADIO || mode == MODE_AUDIO || mode == MODE_MENU_UTF8); bool allowed_mode = (mode == MODE_TVRADIO || mode == MODE_AUDIO || mode == MODE_MENU_UTF8);
if (!allowed_mode) if (!allowed_mode)
return; return;