mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- drop easymenu
This commit is contained in:
@@ -344,14 +344,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
//theme/color options
|
||||
CThemes::getTheme(configfile);
|
||||
|
||||
g_settings.easymenu = configfile.getInt32("easymenu", 0);
|
||||
g_settings.softupdate_autocheck = configfile.getBool("softupdate_autocheck" , false);
|
||||
/* if file present and no config file found, force easy mode */
|
||||
if (erg && !access("/var/etc/.easymenu", F_OK)) {
|
||||
g_settings.easymenu = 1;
|
||||
g_settings.softupdate_autocheck = 1;
|
||||
}
|
||||
dprintf(DEBUG_NORMAL, "g_settings.easymenu %d\n", g_settings.easymenu);
|
||||
|
||||
// video
|
||||
g_settings.video_Mode = configfile.getInt32("video_Mode", VIDEO_STD_1080I50); // VIDEO_STD_720P50
|
||||
@@ -650,8 +643,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
//recording (server + vcr)
|
||||
g_settings.recording_type = configfile.getInt32("recording_type", RECORDING_FILE);
|
||||
g_settings.recording_stopsectionsd = configfile.getBool("recording_stopsectionsd" , false );
|
||||
g_settings.recording_audio_pids_default = configfile.getInt32("recording_audio_pids_default",
|
||||
g_settings.easymenu ? TIMERD_APIDS_ALL : TIMERD_APIDS_STD | TIMERD_APIDS_AC3);
|
||||
g_settings.recording_audio_pids_default = configfile.getInt32("recording_audio_pids_default", TIMERD_APIDS_STD | TIMERD_APIDS_AC3);
|
||||
g_settings.recording_zap_on_announce = configfile.getBool("recording_zap_on_announce" , false);
|
||||
g_settings.shutdown_timer_record_type = configfile.getBool("shutdown_timer_record_type" , false);
|
||||
|
||||
@@ -1078,6 +1070,11 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
if(!scansettings.saveSettings(NEUTRINO_SCAN_SETTINGS_FILE)) {
|
||||
dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n");
|
||||
}
|
||||
if (g_settings.version_pseudo < "20170913110000")
|
||||
{
|
||||
//remove easymenu
|
||||
configfile.deleteKey("easymenu");
|
||||
}
|
||||
|
||||
//theme/color options
|
||||
CThemes::setTheme(configfile);
|
||||
@@ -1526,7 +1523,6 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32("infoClockFontSize", g_settings.infoClockFontSize);
|
||||
configfile.setInt32("infoClockBackground", g_settings.infoClockBackground);
|
||||
configfile.setInt32("infoClockSeconds", g_settings.infoClockSeconds);
|
||||
configfile.setInt32("easymenu", g_settings.easymenu);
|
||||
|
||||
configfile.setInt32("livestreamResolution", g_settings.livestreamResolution);
|
||||
configfile.setString("livestreamScriptPath", g_settings.livestreamScriptPath);
|
||||
@@ -2893,12 +2889,6 @@ _repeat:
|
||||
adjustToChannelID(live_channel_id);//FIXME what if deleted ?
|
||||
hintBox.hide();
|
||||
}
|
||||
if (g_settings.easymenu) {
|
||||
CBouquetList * blist = (mode == mode_radio) ? RADIOfavList : TVfavList;
|
||||
t_channel_id live_channel_id = channelList->getActiveChannel_ChannelID();
|
||||
if (blist->hasChannelID(live_channel_id))
|
||||
SetChannelMode(LIST_MODE_FAV);
|
||||
}
|
||||
|
||||
channelList_painted = false;
|
||||
|
||||
@@ -4311,21 +4301,6 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
g_RCInput->postMsg(NeutrinoMessages::STANDBY_ON, 0);
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if(actionKey == "easyswitch") {
|
||||
INFO("easyswitch\n");
|
||||
CParentalSetup pin;
|
||||
if (pin.checkPin()) {
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
std::string text = "Easy menu switched " + string(g_settings.easymenu?"OFF":"ON") + string(", when restart box.\nRestart now?");
|
||||
if (ShowMsg(LOCALE_MESSAGEBOX_INFO, text, CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_INFO, 0) == CMsgBox::mbrYes) {
|
||||
g_settings.easymenu = (g_settings.easymenu == 0) ? 1 : 0;
|
||||
INFO("change easymenu to %d\n", g_settings.easymenu);
|
||||
g_RCInput->postMsg(NeutrinoMessages::REBOOT, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return returnval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user