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

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: a62267196f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)

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

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-13 21:17:37 +01:00
committed by Thilo Graf
parent a4e79436e1
commit e31813460a

View File

@@ -429,6 +429,9 @@ void CVFD::showVolume(const char vol, const bool force_update)
return;
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);
if (!allowed_mode)
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
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);
if (!allowed_mode)
return;