mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- screensaver: add GUI option to change screensaver directory
This commit is contained in:
@@ -322,6 +322,11 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
chooserDir(g_settings.screenshot_dir, true, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(actionKey=="screensaver_dir") {
|
||||
const char *action_str = "screensaver";
|
||||
chooserDir(g_settings.screensaver_dir, false, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(strncmp(actionKey.c_str(), "fontsize.d", 10) == 0) {
|
||||
for (int i = 0; i < FONT_GROUP_COUNT; i++) {
|
||||
if (actionKey == font_sizes_groups[i].actionkey) {
|
||||
@@ -607,6 +612,13 @@ int COsdSetup::showOsdSetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_SUBCHANNEL_POS);
|
||||
osd_menu->addItem(mc);
|
||||
|
||||
osd_menu->addItem(GenericMenuSeparatorLine);
|
||||
|
||||
// screensaver_dir
|
||||
mf = new CMenuForwarder(LOCALE_SCREENSAVER_DIR, true, g_settings.screensaver_dir, this, "screensaver_dir");
|
||||
mf->setHint("", LOCALE_MENU_HINT_SCREENSAVER_DIR);
|
||||
osd_menu->addItem(mf);
|
||||
|
||||
int oldVolumeSize = g_settings.volume_size;
|
||||
int oldInfoClockSize = g_settings.infoClockFontSize;
|
||||
|
||||
|
Reference in New Issue
Block a user