mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
gui/miscsettings_menu.cpp: fix settings sectionsd config
Origin commit data
------------------
Branch: ni/coolstream
Commit: 320c3b163c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-20 (Mon, 20 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -104,8 +104,18 @@ void COnOffNotifier::addItem(CMenuItem* menuItem)
|
||||
toDisable.push_back(menuItem);
|
||||
}
|
||||
|
||||
bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t locale, void *data)
|
||||
{
|
||||
char *str = (char*) data;
|
||||
if (locale == LOCALE_MISCSETTINGS_EPG_CACHE)
|
||||
g_settings.epg_cache = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE)
|
||||
g_settings.epg_extendedcache = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_OLD_EVENTS)
|
||||
g_settings.epg_old_events = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_MAX_EVENTS)
|
||||
g_settings.epg_max_events = atoi(str);
|
||||
|
||||
CNeutrinoApp::getInstance()->SendSectionsdConfig();
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user