neutrino.cpp: start epg scan after leaving menu, if epg scan option changed

This commit is contained in:
[CST] Focus
2013-12-19 19:46:27 +04:00
parent bf520e26fc
commit 85b25750d5

View File

@@ -2104,12 +2104,17 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
StopSubtitles(); StopSubtitles();
InfoClock->enableInfoClock(false); InfoClock->enableInfoClock(false);
int old_ttx = g_settings.cacheTXT; int old_ttx = g_settings.cacheTXT;
int old_epg = g_settings.epg_scan;
mainMenu.exec(NULL, ""); mainMenu.exec(NULL, "");
InfoClock->enableInfoClock(true); InfoClock->enableInfoClock(true);
StartSubtitles(); StartSubtitles();
saveSetup(NEUTRINO_SETTINGS_FILE); saveSetup(NEUTRINO_SETTINGS_FILE);
if (!g_settings.epg_scan) if (old_epg != g_settings.epg_scan) {
if (g_settings.epg_scan)
CEpgScan::getInstance()->Start();
else
CEpgScan::getInstance()->Clear(); CEpgScan::getInstance()->Clear();
}
if (old_ttx != g_settings.cacheTXT) { if (old_ttx != g_settings.cacheTXT) {
if(g_settings.cacheTXT) { if(g_settings.cacheTXT) {
tuxtxt_init(); tuxtxt_init();
@@ -3347,13 +3352,13 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
frameBuffer->setActive(false); frameBuffer->setActive(false);
// Active standby on // Active standby on
powerManager->SetStandby(false, false); powerManager->SetStandby(false, false);
CEpgScan::getInstance()->StartStandby(); CEpgScan::getInstance()->Start(true);
} else { } else {
// Active standby off // Active standby off
powerManager->SetStandby(false, false); powerManager->SetStandby(false, false);
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000); cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
videoDecoder->Standby(false); videoDecoder->Standby(false);
CEpgScan::getInstance()->StopStandby(); CEpgScan::getInstance()->Stop();
if(init_cec_setting){ if(init_cec_setting){
//init cec settings //init cec settings