[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 {
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
}
}
}

View file

@ -164,7 +164,7 @@ QVariant RemoteSinksModel::data(const QModelIndex& index, int role) const
}
}
bool RemoteSinksModel::setData(const QModelIndex &index, const QVariant &value, int role)
bool RemoteSinksModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
if (!index.isValid()
|| index.row() < 0