mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Change mute on minimize to mute on focus loss
Minimization doesn't always happen on focus loss in full-screen mode, so it could lead to unpredictable behavior.
This commit is contained in:
@@ -685,14 +685,19 @@ Flickable {
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
id: muteOnMinimizeCheck
|
||||
id: muteOnFocusLossCheck
|
||||
width: parent.width
|
||||
text: qsTr("Mute audio stream when Moonlight is minimized")
|
||||
text: qsTr("Mute audio stream when Moonlight is not the active window")
|
||||
font.pointSize: 12
|
||||
checked: StreamingPreferences.muteOnMinimize
|
||||
checked: StreamingPreferences.muteOnFocusLoss
|
||||
onCheckedChanged: {
|
||||
StreamingPreferences.muteOnMinimize = checked
|
||||
StreamingPreferences.muteOnFocusLoss = checked
|
||||
}
|
||||
|
||||
ToolTip.delay: 1000
|
||||
ToolTip.timeout: 5000
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: qsTr("Mutes Moonlight's audio when you Alt+Tab out of the stream or click on a different window.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user