- neutrino-menu: allow personalization for parental lock item

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-04-23 23:12:21 +02:00
committed by Thilo Graf
parent 3eba207cc7
commit 5222218208
3 changed files with 3 additions and 1 deletions

View File

@@ -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());

View File

@@ -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},

View File

@@ -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,