mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
infobar timout: add member to get current timeout modes
Avoids multiple code in some source files.
This commit is contained in:
@@ -2867,15 +2867,8 @@ void CNeutrinoApp::RealRun()
|
||||
else if( ( msg == CRCInput::RC_help ) || ( msg == CRCInput::RC_info) ||
|
||||
( msg == NeutrinoMessages::SHOW_INFOBAR ) )
|
||||
{
|
||||
#if 1
|
||||
bool enabled_by_timing = (
|
||||
((mode == NeutrinoModes::mode_tv || mode == NeutrinoModes::mode_webtv) && g_settings.handling_infobar[SNeutrinoSettings::HANDLING_INFOBAR] != 0) ||
|
||||
((mode == NeutrinoModes::mode_radio || mode == NeutrinoModes::mode_webradio) && g_settings.handling_infobar[SNeutrinoSettings::HANDLING_INFOBAR_RADIO] != 0)
|
||||
);
|
||||
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || enabled_by_timing));
|
||||
#else
|
||||
const bool show_info = true;
|
||||
#endif
|
||||
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || g_InfoViewer->hasTimeout()));
|
||||
|
||||
// turn on LCD display
|
||||
CVFD::getInstance()->wake_up();
|
||||
|
||||
|
Reference in New Issue
Block a user