Move some buttons around to more logical places

This commit is contained in:
Bart De Vries 2021-04-13 21:07:05 +02:00
parent 32f01b03bd
commit 2f389e02aa
1 changed files with 10 additions and 10 deletions

View File

@ -99,13 +99,9 @@ Kirigami.SwipeListItem {
actions: [
Kirigami.Action {
iconName: "media-playback-start"
text: "Play"
onTriggered: {
audio.entry = entry
audio.play()
}
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
text: i18n("Remove from Queue")
icon.name: "list-remove"
onTriggered: { DataManager.removeQueueItem(entry) }
},
Kirigami.Action {
text: i18n("Download")
@ -126,9 +122,13 @@ Kirigami.SwipeListItem {
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
},
Kirigami.Action {
text: i18n("Remove from Queue")
icon.name: "list-remove"
onTriggered: { DataManager.removeQueueItem(entry) }
iconName: "media-playback-start"
text: "Play"
onTriggered: {
audio.entry = entry
audio.play()
}
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
}
]
}