mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: add GUI option to change timeout
Origin commit data
------------------
Branch: ni/coolstream
Commit: 153e7dba91
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-29 (Mon, 29 Dec 2014)
Origin message was:
------------------
- screensaver: add GUI option to change timeout
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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