Fix highlighting of the playbackRate corresponding to the current rate.

This commit is contained in:
Swapnil Tripathi 2021-07-05 06:30:03 +05:30 committed by Bart De Vries
parent 77715f94b9
commit 74879a0a58

View File

@ -71,6 +71,7 @@ Loader {
clip: true
delegate: Kirigami.SwipeListItem {
id: swipeDelegate
highlighted: value == AudioManager.playbackRate
Controls.Label {
text: name
}
@ -120,9 +121,8 @@ Loader {
Layout.fillHeight: true
clip: true
delegate: Kirigami.BasicListItem {
contentItem: Controls.Label {
text: model.name
}
highlighted: value == AudioManager.playbackRate
label: model.name
onClicked: {
AudioManager.playbackRate = value;
close();