audioplayer/screensaver: add gui switch to use covers as screensaver

Origin commit data
------------------
Commit: 76507f38fa
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-05-24 (Thu, 24 May 2018)

Origin message was:
------------------
- audioplayer/screensaver: add gui switch to use covers as screensaver
This commit is contained in:
vanhofen
2018-05-24 02:03:23 +02:00
parent dbe01f3308
commit f43a9ed696
8 changed files with 20 additions and 1 deletions

View File

@@ -188,7 +188,11 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)
bool CScreenSaver::ReadDir()
{
string d = g_settings.screensaver_dir;
string d;
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_audio && g_settings.audioplayer_cover_as_screensaver)
d = COVERDIR;
else
d = g_settings.screensaver_dir;
if (d.length() > 1)
{
//remove trailing slash