From aad8c86cb8d98553ce5cd75e826138dd25a62f10 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 28 Jun 2014 14:26:18 +0200 Subject: [PATCH] - neutrino_menue: add own personalize item to standby item --- src/neutrino_menue.cpp | 3 ++- src/system/settings.cpp | 1 + src/system/settings.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index 44474f338..33deb320d 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -282,7 +282,8 @@ void CNeutrinoApp::InitMenuMain() // standby mf = new CMenuForwarder(LOCALE_MAINMENU_STANDBY, true, NULL, this, "standby", CRCInput::RC_red , NEUTRINO_ICON_BUTTON_RED); mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_STANDBY); - personalize.addItem(MENU_SHUTDOWN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_SLEEPTIMER]); + personalize.addItem(MENU_SHUTDOWN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_STANDBY]); + //sleeptimer mf = new CMenuForwarder(LOCALE_MAINMENU_SLEEPTIMER, true, NULL, new CSleepTimerWidget, NULL, CRCInput::RC_green , NEUTRINO_ICON_BUTTON_GREEN); mf->setHint(NEUTRINO_ICON_HINT_SLEEPTIMER, LOCALE_MENU_HINT_SLEEPTIMER); diff --git a/src/system/settings.cpp b/src/system/settings.cpp index 33f0d42f6..5515e72bb 100644 --- a/src/system/settings.cpp +++ b/src/system/settings.cpp @@ -53,6 +53,7 @@ const struct personalize_settings_t personalize_settings[SNeutrinoSettings::P_SE {"personalize_settings" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED}, {"personalize_service" , CPersonalizeGui::PERSONALIZE_PROTECT_MODE_NOT_PROTECTED}, {"personalize_sleeptimer" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, + {"personalize_standby" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_reboot" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_shutdown" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, {"personalize_infomenu_main" , CPersonalizeGui::PERSONALIZE_MODE_VISIBLE}, diff --git a/src/system/settings.h b/src/system/settings.h index cd1b60fbf..dfb96eb07 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -190,6 +190,7 @@ struct SNeutrinoSettings P_MAIN_SETTINGS, P_MAIN_SERVICE, P_MAIN_SLEEPTIMER, + P_MAIN_STANDBY, P_MAIN_REBOOT, P_MAIN_SHUTDOWN, P_MAIN_INFOMENU,