mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
infobar timout: add member to get current timeout modes
Avoids multiple code in some source files.
This commit is contained in:
@@ -2327,3 +2327,13 @@ void CInfoViewer::ResetModules()
|
||||
delete rec; rec = NULL;
|
||||
infoViewerBB->ResetModules();
|
||||
}
|
||||
|
||||
bool CInfoViewer::hasTimeout()
|
||||
{
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
bool ret = (
|
||||
((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)
|
||||
);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user