From a3c23d3fadbf0cd15fd2b12a6d303c16c023851a Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 28 Mar 2019 20:51:41 +0100 Subject: [PATCH] lcd4linux: fix weather on/off item Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fa3964498a361b0c3d94caad9b16258aa6ff3de8 Author: vanhofen Date: 2019-03-28 (Thu, 28 Mar 2019) Origin message was: ------------------ - lcd4linux: fix weather on/off item ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/lcd4l_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/lcd4l_setup.cpp b/src/gui/lcd4l_setup.cpp index 3e571b98b..4f6f97391 100644 --- a/src/gui/lcd4l_setup.cpp +++ b/src/gui/lcd4l_setup.cpp @@ -200,7 +200,7 @@ int CLCD4lSetup::show() const char *flag_lcd4l_weather = FLAGDIR "/.lcd-weather"; int fake_lcd4l_weather = file_exists(flag_lcd4l_weather); CTouchFileNotifier *lcd_weather = new CTouchFileNotifier(flag_lcd4l_weather); - mc = new CMenuOptionChooser(LOCALE_LCD4L_WEATHER, &fake_lcd4l_weather, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, (file_exists("/share/lcd/scripts/weather")), lcd_weather, CRCInput::convertDigitToKey(shortcut++)); + mc = new CMenuOptionChooser(LOCALE_LCD4L_WEATHER, &fake_lcd4l_weather, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, lcd_weather, CRCInput::convertDigitToKey(shortcut++)); mc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_WEATHER); lcd4lSetup->addItem(mc);