mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 15:55:39 +00:00
Allow the screensaver toggle to work even if running on an embedded platform
This commit is contained in:
parent
edeea65c3e
commit
ce2a01fc59
@ -955,7 +955,6 @@ Flickable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
visible: SystemProperties.hasDesktopEnvironment
|
|
||||||
id: keepAwakeCheck
|
id: keepAwakeCheck
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: qsTr("Keep PC awake while streaming")
|
text: qsTr("Keep PC awake while streaming")
|
||||||
|
@ -1468,8 +1468,8 @@ void Session::execInternal()
|
|||||||
// on macOS.
|
// on macOS.
|
||||||
SDL_StopTextInput();
|
SDL_StopTextInput();
|
||||||
|
|
||||||
// Disable the screen saver if requested or running as embedded platform
|
// Disable the screen saver if requested
|
||||||
if (m_Preferences->keepAwake || !WMUtils::isRunningDesktopEnvironment()) {
|
if (m_Preferences->keepAwake) {
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user