mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/miscsettings_menu.cpp: add option to enable/disable epg scan
This commit is contained in:
@@ -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);
|
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);
|
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(mc);
|
||||||
ms_epg->addItem(mc1);
|
ms_epg->addItem(mc1);
|
||||||
ms_epg->addItem(mf);
|
ms_epg->addItem(mf);
|
||||||
@@ -353,7 +357,7 @@ void CMiscMenue::showMiscSettingsMenuEpg(CMenuWidget *ms_epg)
|
|||||||
ms_epg->addItem(mf2);
|
ms_epg->addItem(mf2);
|
||||||
ms_epg->addItem(mf3);
|
ms_epg->addItem(mf3);
|
||||||
ms_epg->addItem(mf4);
|
ms_epg->addItem(mf4);
|
||||||
|
ms_epg->addItem(mc2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//filebrowser settings
|
//filebrowser settings
|
||||||
|
@@ -142,6 +142,7 @@ struct SNeutrinoSettings
|
|||||||
std::string epg_max_events;
|
std::string epg_max_events;
|
||||||
std::string epg_extendedcache;
|
std::string epg_extendedcache;
|
||||||
std::string epg_dir;
|
std::string epg_dir;
|
||||||
|
int epg_scan;
|
||||||
|
|
||||||
//network
|
//network
|
||||||
std::string network_ntpserver;
|
std::string network_ntpserver;
|
||||||
|
Reference in New Issue
Block a user