diff --git a/es-app/src/Screensaver.cpp b/es-app/src/Screensaver.cpp index f40567b2e..a6fc22eac 100644 --- a/es-app/src/Screensaver.cpp +++ b/es-app/src/Screensaver.cpp @@ -465,7 +465,7 @@ void Screensaver::generateVideoList() void Screensaver::generateCustomImageList() { std::string imageDir {Utils::FileSystem::expandHomePath( - Settings::getInstance()->getString("ScreensaverSlideshowImageDir"))}; + Settings::getInstance()->getString("ScreensaverSlideshowCustomDir"))}; if (imageDir.empty()) imageDir = Utils::FileSystem::getAppDataDirectory() diff --git a/es-app/src/guis/GuiScreensaverOptions.cpp b/es-app/src/guis/GuiScreensaverOptions.cpp index ac2e30f7c..2b1d533bf 100644 --- a/es-app/src/guis/GuiScreensaverOptions.cpp +++ b/es-app/src/guis/GuiScreensaverOptions.cpp @@ -199,14 +199,14 @@ void GuiScreensaverOptions::openSlideshowScreensaverOptions() // Custom image directory. ComponentListRow rowCustomImageDir; - auto screensaverSlideshowImageDir = std::make_shared( + auto ScreensaverSlideshowCustomDir = std::make_shared( "CUSTOM IMAGE DIRECTORY", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary); auto bracketCustomImageDir = std::make_shared(); bracketCustomImageDir->setResize( glm::vec2 {0.0f, Font::get(FONT_SIZE_MEDIUM)->getLetterHeight()}); bracketCustomImageDir->setImage(":/graphics/arrow.svg"); bracketCustomImageDir->setColorShift(mMenuColorPrimary); - rowCustomImageDir.addElement(screensaverSlideshowImageDir, true); + rowCustomImageDir.addElement(ScreensaverSlideshowCustomDir, true); rowCustomImageDir.addElement(bracketCustomImageDir, false); const std::string titleCustomImageDir {"CUSTOM IMAGE DIRECTORY"}; const std::string defaultImageDirStaticText {"Default directory:"}; @@ -215,10 +215,10 @@ void GuiScreensaverOptions::openSlideshowScreensaverOptions() .append("custom_slideshow") .string()}; const std::string initValueMediaDir { - Settings::getInstance()->getString("ScreensaverSlideshowImageDir")}; + Settings::getInstance()->getString("ScreensaverSlideshowCustomDir")}; const bool multiLineMediaDir {false}; auto updateValMediaDir = [this, s](const std::string& newVal) { - Settings::getInstance()->setString("ScreensaverSlideshowImageDir", newVal); + Settings::getInstance()->setString("ScreensaverSlideshowCustomDir", newVal); s->setNeedsSaving(); }; rowCustomImageDir.makeAcceptInputHandler( @@ -227,14 +227,14 @@ void GuiScreensaverOptions::openSlideshowScreensaverOptions() if (Settings::getInstance()->getBool("VirtualKeyboard")) { mWindow->pushGui(new GuiTextEditKeyboardPopup( getHelpStyle(), s->getMenu().getPosition().y, titleCustomImageDir, - Settings::getInstance()->getString("ScreensaverSlideshowImageDir"), + Settings::getInstance()->getString("ScreensaverSlideshowCustomDir"), updateValMediaDir, multiLineMediaDir, "SAVE", "SAVE CHANGES?", defaultImageDirStaticText, defaultImageDirText, "load default directory")); } else { mWindow->pushGui(new GuiTextEditPopup( getHelpStyle(), titleCustomImageDir, - Settings::getInstance()->getString("ScreensaverSlideshowImageDir"), + Settings::getInstance()->getString("ScreensaverSlideshowCustomDir"), updateValMediaDir, multiLineMediaDir, "SAVE", "SAVE CHANGES?", defaultImageDirStaticText, defaultImageDirText, "load default directory")); } diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 5f1f0e2c2..b585843a1 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -202,7 +202,7 @@ void Settings::setDefaults() mBoolMap["ScreensaverSlideshowScanlines"] = {false, false}; mBoolMap["ScreensaverSlideshowCustomImages"] = {false, false}; mBoolMap["ScreensaverSlideshowRecurse"] = {false, false}; - mStringMap["ScreensaverSlideshowImageDir"] = {"", ""}; + mStringMap["ScreensaverSlideshowCustomDir"] = {"", ""}; // UI settings -> screensaver settings -> video screensaver settings. mIntMap["ScreensaverSwapVideoTimeout"] = {0, 0};