Fixed an issue where the slideshow screensaver with a single custom image would hang the application.

This commit is contained in:
Leon Styhre 2022-04-12 20:47:25 +02:00
parent d7e46205c1
commit 37e2564ff7
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;