From a62267196f87fbecad924299ed7de658c2845986 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 13 Nov 2017 21:17:37 +0100 Subject: [PATCH] - vfd: re-add by mistake removed setting "off" for statusbar Signed-off-by: Thilo Graf --- src/driver/vfd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/driver/vfd.cpp b/src/driver/vfd.cpp index de8def36a..6adf582d0 100644 --- a/src/driver/vfd.cpp +++ b/src/driver/vfd.cpp @@ -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;