neutrino: respect user's infoviewer timeout settings for different modes

Origin commit data
------------------
Commit: f736dfa254
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-05 (Sun, 05 Nov 2017)

Origin message was:
------------------
- neutrino: respect user's infoviewer timeout settings for different modes
This commit is contained in:
vanhofen
2017-11-05 22:10:30 +01:00
parent 09f8e1d679
commit 8d2c9fcf56

View File

@@ -3041,7 +3041,12 @@ void CNeutrinoApp::RealRun()
else if( ( msg == CRCInput::RC_help ) || ( msg == CRCInput::RC_info) ||
( msg == NeutrinoMessages::SHOW_INFOBAR ) )
{
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR] != 0));
bool enabled_by_timing = (
((mode == mode_tv || mode == mode_webtv) && g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR] != 0)
|| ((mode == mode_radio || mode == mode_webradio) && g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR_RADIO] != 0)
);
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || enabled_by_timing));
// turn on LCD display
CVFD::getInstance()->wake_up();