Fix highlighting of the playbackRate corresponding to the current rate.
This commit is contained in:
parent
77715f94b9
commit
74879a0a58
@ -71,6 +71,7 @@ Loader {
|
|||||||
clip: true
|
clip: true
|
||||||
delegate: Kirigami.SwipeListItem {
|
delegate: Kirigami.SwipeListItem {
|
||||||
id: swipeDelegate
|
id: swipeDelegate
|
||||||
|
highlighted: value == AudioManager.playbackRate
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: name
|
text: name
|
||||||
}
|
}
|
||||||
@ -120,9 +121,8 @@ Loader {
|
|||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
clip: true
|
clip: true
|
||||||
delegate: Kirigami.BasicListItem {
|
delegate: Kirigami.BasicListItem {
|
||||||
contentItem: Controls.Label {
|
highlighted: value == AudioManager.playbackRate
|
||||||
text: model.name
|
label: model.name
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
AudioManager.playbackRate = value;
|
AudioManager.playbackRate = value;
|
||||||
close();
|
close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user