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:
Cameron Gutman
2021-01-09 17:56:23 -06:00
parent 2d62d090df
commit 7020749987
5 changed files with 26 additions and 24 deletions
+9 -4
View File
@@ -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.")
}
}
}