[app/volume] Use property setter

This commit is contained in:
Nicolas Fella 2020-08-07 00:08:31 +02:00
parent 2d523f0b8a
commit 5657547179
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ Kirigami.Page
Button { Button {
icon.name: muted ? "player-volume-muted" : "player-volume" icon.name: muted ? "player-volume-muted" : "player-volume"
onClicked: pluginInterface.sendMuted(name, !muted) onClicked: muted = !muted
} }
Slider { Slider {
@ -60,7 +60,7 @@ Kirigami.Page
from: 0 from: 0
value: volume value: volume
to: maxVolume to: maxVolume
onMoved: pluginInterface.sendVolume(name, value) onMoved: volume = value
} }
} }
} }