From 52222182080c28f221b2d0a012c455eda53e0519 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 23 Apr 2022 23:12:21 +0200 Subject: [PATCH] - neutrino-menu: allow personalization for parental lock item Signed-off-by: Thilo Graf --- src/neutrino_menue.cpp | 2 +- src/system/settings.cpp | 1 + src/system/settings.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index 7d2bc2aa8..58f678f07 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -342,7 +342,7 @@ void CNeutrinoApp::InitMenuSettings() // parental lock mf = new CMenuForwarder(LOCALE_PARENTALLOCK_PARENTALLOCK, true, NULL, new CParentalSetup()); mf->setHint(NEUTRINO_ICON_HINT_PROTECTION, LOCALE_MENU_HINT_PROTECTION); - personalize.addItem(MENU_SETTINGS, mf, &show, false, CPersonalizeGui::PERSONALIZE_SHOW_NO); + personalize.addItem(MENU_SETTINGS, mf, &g_settings.personalize[SNeutrinoSettings::P_MSET_PARENTALLOCK]); // network mf = new CMenuForwarder(LOCALE_MAINSETTINGS_NETWORK, true, NULL, CNetworkSetup::getInstance()); diff --git a/src/system/settings.cpp b/src/system/settings.cpp index 5ba4746f9..57ee6a02c 100644 --- a/src/system/settings.cpp +++ b/src/system/settings.cpp @@ -68,6 +68,7 @@ const struct personalize_settings_t personalize_settings[SNeutrinoSettings::P_SE {"personalize_settingsmager" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_video" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_audio" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, + {"personalize_parentallock" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_network" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_recording" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_osdlang" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, diff --git a/src/system/settings.h b/src/system/settings.h index 979ec35a5..5acacf621 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -705,6 +705,7 @@ struct SNeutrinoSettings P_MSET_SETTINGS_MANAGER, P_MSET_VIDEO, P_MSET_AUDIO, + P_MSET_PARENTALLOCK, P_MSET_NETWORK, P_MSET_RECORDING, P_MSET_OSDLANG,