From ce0e2941a86ad348af955179754c45a0b0fd3d67 Mon Sep 17 00:00:00 2001 From: BPanther Date: Fri, 15 Oct 2021 14:55:29 +0200 Subject: [PATCH] more pip changes Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b02c34ce96f1b6167d33bd2011d3dddc739ed451 Author: BPanther Date: 2021-10-15 (Fri, 15 Oct 2021) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino_menue.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index f30cb8edc..49d90718a 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -281,9 +281,12 @@ void CNeutrinoApp::InitMenuMain() } #if ENABLE_PIP && ENABLE_QUADPIP - CMenuForwarder *quadpip = new CMenuForwarder(LOCALE_QUADPIP, true, NULL, new CQuadPiPSetup(), NULL, CRCInput::RC_nokey); - quadpip->setHint(NEUTRINO_ICON_HINT_QUADPIP, LOCALE_MENU_HINT_QUADPIP); - personalize.addItem(MENU_MAIN, quadpip/*, &g_settings.personalize[SNeutrinoSettings::P_MAIN_QUADPIP]*/); + // temp, only for testing, changed later + if (g_info.hw_caps->pip_devs >= 1) { + CMenuForwarder *quadpip = new CMenuForwarder(LOCALE_QUADPIP, true, NULL, new CQuadPiPSetup(), NULL, CRCInput::RC_nokey); + quadpip->setHint(NEUTRINO_ICON_HINT_QUADPIP, LOCALE_MENU_HINT_QUADPIP); + personalize.addItem(MENU_MAIN, quadpip/*, &g_settings.personalize[SNeutrinoSettings::P_MAIN_QUADPIP]*/); + } #endif #ifdef ENABLE_TESTING