Allow the screensaver toggle to work even if running on an embedded platform

This commit is contained in:
Cameron Gutman committed 2022-03-16 21:57:03 -05:00
1 parent edeea65c3e
commit ce2a01fc59
2 files changed
+2 -3

No files matched your search

-1
View File
@@ -955,7 +955,6 @@ Flickable {
}
CheckBox {
visible: SystemProperties.hasDesktopEnvironment
id: keepAwakeCheck
width: parent.width
text: qsTr("Keep PC awake while streaming")
+2 -2
View File
@@ -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();
}