From 37e2564ff7142e32c42fb27971e1d2f42fbf1d32 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 12 Apr 2022 20:47:25 +0200 Subject: [PATCH] Fixed an issue where the slideshow screensaver with a single custom image would hang the application. --- CHANGELOG.md | 1 + es-app/src/Screensaver.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1feb34602..d43805e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -141,6 +141,7 @@ v1.2 maintenance release. ### Bug fixes +* Using a custom image directory for the slideshow screensaver would hang the application if there was only a single image * Navigating the list of alternative emulators would sometimes lead to an incorrect row positioning ## Version 1.2.2 diff --git a/es-app/src/Screensaver.cpp b/es-app/src/Screensaver.cpp index b2e399dc8..bc12f2e2d 100644 --- a/es-app/src/Screensaver.cpp +++ b/es-app/src/Screensaver.cpp @@ -570,7 +570,7 @@ void Screensaver::pickRandomCustomImage(std::string& path) if (mImageCustomFiles.size() == 0) return; - if (mVideoFiles.size() == 1) { + if (mImageCustomFiles.size() == 1) { mPreviousCustomImage = mImageCustomFiles.front(); path = mImageCustomFiles.front(); return;