mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
lcd4linux: add menu item to allow or disable display screenshots
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c16e15ecc
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-27 (Thu, 27 Jan 2022)
Origin message was:
------------------
- lcd4linux: add menu item to allow or disable display screenshots
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -173,6 +173,7 @@ int CLCD4lSetup::show()
|
||||
temp_lcd4l_display_type = g_settings.lcd4l_display_type;
|
||||
temp_lcd4l_skin = g_settings.lcd4l_skin;
|
||||
temp_lcd4l_brightness = g_settings.lcd4l_brightness;
|
||||
temp_lcd4l_screenshots = g_settings.lcd4l_screenshots;
|
||||
|
||||
CMenuOptionChooser *mc;
|
||||
CMenuForwarder *mf;
|
||||
@@ -223,6 +224,10 @@ int CLCD4lSetup::show()
|
||||
mc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_CONVERT);
|
||||
lcd4lSetup->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionChooser(LOCALE_LCD4L_SCREENSHOTS, &temp_lcd4l_screenshots, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL, CRCInput::convertDigitToKey(shortcut++));
|
||||
mc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_SCREENSHOTS);
|
||||
lcd4lSetup->addItem(mc);
|
||||
|
||||
int res = lcd4lSetup->exec(NULL, "");
|
||||
|
||||
lcd4lSetup->hide();
|
||||
@@ -257,6 +262,14 @@ int CLCD4lSetup::show()
|
||||
initlcd4l = true;
|
||||
}
|
||||
|
||||
if (g_settings.lcd4l_screenshots != temp_lcd4l_screenshots)
|
||||
{
|
||||
g_settings.lcd4l_screenshots = temp_lcd4l_screenshots;
|
||||
initlcd4l = true;
|
||||
|
||||
CNeutrinoApp::getInstance()->saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||
}
|
||||
|
||||
if (initlcd4l)
|
||||
CLCD4l::getInstance()->InitLCD4l();
|
||||
|
||||
|
Reference in New Issue
Block a user