Fixed an issue where videos would not pause on screensaver activation.

This commit is contained in:
Leon Styhre 2020-12-16 18:03:23 +01:00
parent 29abe2dc8c
commit 6c62b23da8

View file

@ -136,6 +136,8 @@ void VideoComponent::onScreensaverActivate()
mPause = true; mPause = true;
if (Settings::getInstance()->getString("ScreensaverType") == "dim") if (Settings::getInstance()->getString("ScreensaverType") == "dim")
stopVideo(); stopVideo();
else
pauseVideo();
manageState(); manageState();
} }