mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +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;
|
||||
|
||||
|
@@ -123,7 +123,7 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)
|
||||
while(1)
|
||||
{
|
||||
PScreenSaver->PaintPicture();
|
||||
sleep(10);
|
||||
sleep(g_settings.screensaver_timeout);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user