Add option to allow PC to sleep while streaming

This commit is contained in:
Cameron Gutman
2022-03-16 21:48:56 -05:00
parent 73d84dc13f
commit 97d8274911
5 changed files with 30 additions and 2 deletions
+17
View File
@@ -953,6 +953,23 @@ Flickable {
ToolTip.visible: hovered
ToolTip.text: qsTr("Updates your Discord status to display the name of the game you're streaming.")
}
CheckBox {
visible: SystemProperties.hasDesktopEnvironment
id: keepAwakeCheck
width: parent.width
text: qsTr("Keep PC awake while streaming")
font.pointSize: 12
checked: StreamingPreferences.keepAwake
onCheckedChanged: {
StreamingPreferences.keepAwake = checked
}
ToolTip.delay: 1000
ToolTip.timeout: 5000
ToolTip.visible: hovered
ToolTip.text: qsTr("Prevents the display from going to sleep while a stream is active.")
}
}
}
}