From 449a8df07115d49be960f3cd4e64cebe3bc591cb Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 18 Apr 2019 22:22:57 +0200 Subject: [PATCH] src/gui/screensaver.cpp: read screensaver dir only in image mode Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e84ff64c47a15bfaedb2febbc729b5fc82cc78ec Author: Jacek Jendrzej Date: 2019-04-18 (Thu, 18 Apr 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/screensaver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index a7a743b62..3be0b838b 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -182,7 +182,9 @@ void* CScreenSaver::ScreenSaverPrg(void* arg) { while(PScreenSaver) { - PScreenSaver->ReadDir(); + if (g_settings.screensaver_mode == SCR_MODE_IMAGE) + PScreenSaver->ReadDir(); + PScreenSaver->paint(); int t = g_settings.screensaver_timeout; while (t--)