From 34e5521199caad4a8485c9dc6d95673131d08500 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 1 Aug 2021 22:35:36 +0200 Subject: [PATCH] neutrino: add freeze plugin to yellow user menu Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/26b480a86061c6d0676b90f802445e2f063c7ccb Author: vanhofen Date: 2021-08-01 (Sun, 01 Aug 2021) Origin message was: ------------------ - neutrino: add freeze plugin to yellow user menu ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 11 +++++++++-- version_pseudo.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 722f15a8e..5c0a2f75a 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -341,7 +341,7 @@ const lcd_setting_struct_t lcd_setting[SNeutrinoSettings::LCD_SETTING_COUNT] = static SNeutrinoSettings::usermenu_t usermenu_default[] = { { CRCInput::RC_red, "2,3,4,13,1,23,22", "", "red" }, { CRCInput::RC_green, "6", "", "green" }, - { CRCInput::RC_yellow, "7,35", "", "yellow" }, + { CRCInput::RC_yellow, "7,35,freeze", "", "yellow" }, { CRCInput::RC_blue, "27,28,21,20,1,39,10,11,24,19,14", "", "blue" }, #if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_HD60 || BOXMODEL_HD61 || BOXMODEL_MULTIBOXSE { CRCInput::RC_playpause, "9", "", "5" }, @@ -1591,7 +1591,14 @@ void CNeutrinoApp::upgradeSetup(const char * fname) { configfile.deleteKey("infobar_cn"); } - + if (g_settings.version_pseudo < "20210801210000") + { + if (g_settings.usermenu[SNeutrinoSettings::BUTTON_YELLOW]->items == "7,35") + { + g_settings.usermenu[SNeutrinoSettings::BUTTON_YELLOW]->items = "7,35,freeze"; + configfile.setString("usermenu_tv_yellow", g_settings.usermenu[SNeutrinoSettings::BUTTON_YELLOW]->items); + } + } g_settings.version_pseudo = NEUTRINO_VERSION_PSEUDO; configfile.setString("version_pseudo", g_settings.version_pseudo); diff --git a/version_pseudo.h b/version_pseudo.h index d7f722e34..2850fa16b 100644 --- a/version_pseudo.h +++ b/version_pseudo.h @@ -1 +1 @@ -#define NEUTRINO_VERSION_PSEUDO "20210702230000" +#define NEUTRINO_VERSION_PSEUDO "20210801210000"