Commit 56575471 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[app/volume] Use property setter

parent 2d523f0b
Pipeline #29925 passed with stage
in 18 minutes
......@@ -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
}
}
}
......
......@@ -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
......
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