[app/volume] Use property setter
This commit is contained in:
parent
2d523f0b8a
commit
5657547179
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ Kirigami.Page
|
|||
|
||||
Button {
|
||||
icon.name: muted ? "player-volume-muted" : "player-volume"
|
||||
onClicked: pluginInterface.sendMuted(name, !muted)
|
||||
onClicked: muted = !muted
|
||||
}
|
||||
|
||||
Slider {
|
||||
|
@ -60,7 +60,7 @@ Kirigami.Page
|
|||
from: 0
|
||||
value: volume
|
||||
to: maxVolume
|
||||
onMoved: pluginInterface.sendVolume(name, value)
|
||||
onMoved: volume = value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue