mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
infobar timout: add member to get current timeout modes
Avoids multiple code in some source files.
Origin commit data
------------------
Branch: ni/coolstream
Commit: e0be304aef
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-10 (Tue, 10 Apr 2018)
Origin message was:
------------------
infobar timout: add member to get current timeout modes
Avoids multiple code in some source files.
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2551,3 +2551,13 @@ void CInfoViewer::ecmInfoBox_hide()
|
||||
ecmInfoBox = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
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