mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
neutrino: fix infobar display with disabled timeout
When the infobar timeout is disabled, the infobar was not shown for all
"automatic" events like "start" and "zap".
The purpose of disabled infobar timeout is to show the infobar all the
time (e.g. in radio mode), so this does not make sense. Fix it.
Origin commit data
------------------
Commit: 9cd7e8972c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-04 (Sun, 04 Feb 2018)
This commit is contained in:
committed by
vanhofen
parent
09cf6ea638
commit
69ca4a90a9
@@ -4,7 +4,7 @@
|
||||
Copyright (C) 2001 Steffen Hehn 'McClean'
|
||||
and some other guys
|
||||
|
||||
Copyright (C) 2006-2017 Stefan Seyfried
|
||||
Copyright (C) 2006-2018 Stefan Seyfried
|
||||
|
||||
Copyright (C) 2011 CoolStream International Ltd
|
||||
|
||||
@@ -3088,12 +3088,15 @@ void CNeutrinoApp::RealRun()
|
||||
else if( ( msg == CRCInput::RC_help ) || ( msg == CRCInput::RC_info) ||
|
||||
( msg == NeutrinoMessages::SHOW_INFOBAR ) )
|
||||
{
|
||||
#if 0
|
||||
bool enabled_by_timing = (
|
||||
((mode == NeutrinoModes::mode_tv || mode == NeutrinoModes::mode_webtv) && g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR] != 0)
|
||||
|| ((mode == NeutrinoModes::mode_radio || mode == NeutrinoModes::mode_webradio) && g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR_RADIO] != 0)
|
||||
);
|
||||
bool show_info = ((msg != NeutrinoMessages::SHOW_INFOBAR) || (g_InfoViewer->is_visible || enabled_by_timing));
|
||||
|
||||
#else
|
||||
const bool show_info = true;
|
||||
#endif
|
||||
// turn on LCD display
|
||||
CVFD::getInstance()->wake_up();
|
||||
|
||||
|
Reference in New Issue
Block a user