|
@@ -60,7 +60,14 @@ void PowerComponent::setFullscreenState(bool fullscreen)
|
|
|
|
|
|
void PowerComponent::redecideScreeensaverState()
|
|
|
{
|
|
|
- bool enableOsScreensaver = !m_fullscreenState && !m_videoPlaying;
|
|
|
+ bool enableOsScreensaver = !m_videoPlaying;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "preventSystemScreensaver").toBool())
|
|
|
+ enableOsScreensaver &= !m_fullscreenState;
|
|
|
+
|
|
|
if (m_currentScreensaverEnabled != enableOsScreensaver)
|
|
|
{
|
|
|
m_currentScreensaverEnabled = enableOsScreensaver;
|