glcdsetup: rework brightness settings menu; items depending by correct settings

Origin commit data
------------------
Branch: ni/coolstream
Commit: 17c5446da0
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-07-05 (Sun, 05 Jul 2020)

Origin message was:
------------------
- glcdsetup: rework brightness settings menu; items depending by correct settings

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-07-05 00:14:17 +02:00
parent 7541245904
commit de326a7c6f
2 changed files with 25 additions and 11 deletions

View File

@@ -299,7 +299,7 @@ int CLCD4lSetup::showTypeSetup()
nc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_BRIGHTNESS);
typeSetup->addItem(nc);
nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS_STANDBY, (int *)&g_settings.lcd4l_brightness_standby, true, 1, LCD4l->GetMaxBrightness(), this);
nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS_STANDBY, (int *)&g_settings.lcd4l_brightness_standby, !g_settings.shutdown_real, 1, LCD4l->GetMaxBrightness(), this);
nc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_BRIGHTNESS_STANDBY);
typeSetup->addItem(nc);