Commit 3ca8f02e authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

muted can also be changed by the Audio player

parent 3c9b8561
......@@ -238,15 +238,9 @@ Item {
id: volumeSlider
minimumValue: 0.0
maximumValue: 1.0
value: if (musicWidget.muted)
0
else
musicWidget.volume
onValueChanged: {
if (!musicWidget.muted) {
musicWidget.volume = value
}
}
value: musicWidget.volume
onValueChanged: musicWidget.volume = value
enabled: !muted
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: width
......
......@@ -132,6 +132,7 @@ ApplicationWindow {
volume: playControlItem.volume * 100
onVolumeChanged: playControlItem.volume = volume / 100.0
onMutedChanged: playControlItem.muted = muted
source: manageAudioPlayer.playerSource
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment