From 2e21f4071eb2d93283aa631eb5769dd4383d1dc1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 14 Dec 2021 11:11:25 +0100 Subject: [PATCH] partial revert2: "- remove --enable-testing switch; testmenu is intergrated into usermenu" The entry for the test menu at the end of the list inside the main menu was implemented not without reason and not for fun. Moving the test menu to the user menus (though it is not intended for users!), complicates the access to the test menu without prior configuration with nice shortcuts. Searching for a colored key or any other key (no matter it is configured or not) is always more awkward than navigation with the control cross keys, which can be used blind too. If you need it often, that's just annoying. --- src/neutrino_menue.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index 11721e41b..7d2bc2aa8 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -68,6 +68,9 @@ #include "gui/sleeptimer.h" #include "gui/timerlist.h" #include "gui/update_menue.h" +#ifdef ENABLE_TESTING +#include "gui/test_menu.h" +#endif #include "gui/update.h" #include "gui/vfd_setup.h" #include "gui/videosettings.h" @@ -279,6 +282,10 @@ void CNeutrinoApp::InitMenuMain() mf->setHint(NEUTRINO_ICON_HINT_CI, LOCALE_MENU_HINT_CI); personalize.addItem(MENU_MAIN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_CISETTINGS]); } + +#ifdef ENABLE_TESTING + personalize.addItem(MENU_MAIN, new CMenuForwarder("Test menu", true, NULL, new CTestMenu()), NULL, false, CPersonalizeGui::PERSONALIZE_SHOW_NO); +#endif } // settings menue