gui/miscsettings_menu.cpp: add option to enable/disable epg scan

This commit is contained in:
[CST] Focus
2013-06-12 18:32:19 +04:00
parent e612cc5380
commit 680f684ce4
2 changed files with 6 additions and 1 deletions

View File

@@ -346,6 +346,10 @@ void CMiscMenue::showMiscSettingsMenuEpg(CMenuWidget *ms_epg)
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SAVE, &g_settings.epg_save, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true,miscEpgNotifier);
mc->setHint("", LOCALE_MENU_HINT_EPG_SAVE);
CMenuOptionChooser * mc2 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SCAN, &g_settings.epg_scan, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT,
CFEManager::getInstance()->getEnabledCount() > 1);
mc1->setHint("", LOCALE_MENU_HINT_EPG_SCAN);
ms_epg->addItem(mc);
ms_epg->addItem(mc1);
ms_epg->addItem(mf);
@@ -353,7 +357,7 @@ void CMiscMenue::showMiscSettingsMenuEpg(CMenuWidget *ms_epg)
ms_epg->addItem(mf2);
ms_epg->addItem(mf3);
ms_epg->addItem(mf4);
ms_epg->addItem(mc2);
}
//filebrowser settings

View File

@@ -142,6 +142,7 @@ struct SNeutrinoSettings
std::string epg_max_events;
std::string epg_extendedcache;
std::string epg_dir;
int epg_scan;
//network
std::string network_ntpserver;