Removed an unnecessary lambda capture

This commit is contained in:
Leon Styhre 2023-12-16 22:21:06 +01:00
parent 1faa5575d9
commit 683b00abcd

View file

@ -217,7 +217,7 @@ void GuiScreensaverOptions::openSlideshowScreensaverOptions()
const std::string initValueMediaDir {
Settings::getInstance()->getString("ScreensaverSlideshowCustomDir")};
const bool multiLineMediaDir {false};
auto updateValMediaDir = [this, s](const std::string& newVal) {
auto updateValMediaDir = [s](const std::string& newVal) {
Settings::getInstance()->setString("ScreensaverSlideshowCustomDir", newVal);
s->setNeedsSaving();
};