mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- screensaver: add GUI option to change timeout
This commit is contained in:
@@ -619,6 +619,12 @@ int COsdSetup::showOsdSetup()
|
||||
mf->setHint("", LOCALE_MENU_HINT_SCREENSAVER_DIR);
|
||||
osd_menu->addItem(mf);
|
||||
|
||||
// screensaver timeout
|
||||
CMenuOptionNumberChooser* nc = new CMenuOptionNumberChooser(LOCALE_SCREENSAVER_TIMEOUT, &g_settings.screensaver_timeout, true, 10, 60);
|
||||
nc->setNumberFormat(std::string("%d ") + g_Locale->getText(LOCALE_UNIT_SHORT_SECOND));
|
||||
nc->setHint("", LOCALE_MENU_HINT_SCREENSAVER_TIMEOUT);
|
||||
osd_menu->addItem(nc);
|
||||
|
||||
int oldVolumeSize = g_settings.volume_size;
|
||||
int oldInfoClockSize = g_settings.infoClockFontSize;
|
||||
|
||||
|
Reference in New Issue
Block a user