mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino.cpp: action save settings, implement ShowHintS
The same is possible with tuxtxt_init() and tuxtxt_close(), if reqiured
This commit is contained in:
@@ -5386,12 +5386,14 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
else if (actionKey=="savesettings") {
|
else if (actionKey=="savesettings") {
|
||||||
|
ShowHintS(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT, sigc::bind(sigc::mem_fun(*this, &CNeutrinoApp::saveSetup), NEUTRINO_SETTINGS_FILE), 1);
|
||||||
|
#if 0
|
||||||
CHint *hint = new CHint(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT);
|
CHint *hint = new CHint(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT);
|
||||||
hint->setDelay(1);
|
hint->setDelay(1);
|
||||||
hint->paint();
|
hint->paint();
|
||||||
|
|
||||||
saveSetup(NEUTRINO_SETTINGS_FILE);
|
saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||||
|
#endif
|
||||||
if(g_settings.cacheTXT) {
|
if(g_settings.cacheTXT) {
|
||||||
tuxtxt_init();
|
tuxtxt_init();
|
||||||
} else
|
} else
|
||||||
@@ -5400,7 +5402,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
//g_Sectionsd->setEventsAreOldInMinutes((unsigned short) (g_settings.epg_old_hours*60));
|
//g_Sectionsd->setEventsAreOldInMinutes((unsigned short) (g_settings.epg_old_hours*60));
|
||||||
//g_Sectionsd->setHoursToCache((unsigned short) (g_settings.epg_cache_days*24));
|
//g_Sectionsd->setHoursToCache((unsigned short) (g_settings.epg_cache_days*24));
|
||||||
|
|
||||||
delete hint;
|
// delete hint;
|
||||||
}
|
}
|
||||||
else if (actionKey=="recording") {
|
else if (actionKey=="recording") {
|
||||||
setupRecordingDevice();
|
setupRecordingDevice();
|
||||||
|
Reference in New Issue
Block a user