From ce2a01fc59753d5bd993d789fc4be275f2c445d1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 16 Mar 2022 21:57:03 -0500 Subject: [PATCH] Allow the screensaver toggle to work even if running on an embedded platform --- app/gui/SettingsView.qml | 1 - app/streaming/session.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index 8191a67a..b74c0a96 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -955,7 +955,6 @@ Flickable { } CheckBox { - visible: SystemProperties.hasDesktopEnvironment id: keepAwakeCheck width: parent.width text: qsTr("Keep PC awake while streaming") diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 01200b09..b7312b60 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1468,8 +1468,8 @@ void Session::execInternal() // on macOS. SDL_StopTextInput(); - // Disable the screen saver if requested or running as embedded platform - if (m_Preferences->keepAwake || !WMUtils::isRunningDesktopEnvironment()) { + // Disable the screen saver if requested + if (m_Preferences->keepAwake) { SDL_DisableScreenSaver(); }