Change default visible action on EntryListDelegate

This commit is contained in:
Bart De Vries 2021-04-16 09:24:53 +02:00
parent 28b47f6a4b
commit 97d8e8290a
2 changed files with 12 additions and 2 deletions

View File

@ -138,12 +138,22 @@ Kirigami.SwipeListItem {
onTriggered: entry.enclosure.cancelDownload()
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloading
},
Kirigami.Action {
text: "Play"
icon.name: "media-playback-start"
onTriggered: {
audio.entry = entry;
audio.play();
}
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded && entry.queueStatus
}
/*,
Kirigami.Action {
text: i18n("Delete download")
icon.name: "delete"
onTriggered: entry.enclosure.deleteFile()
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
} /*,
},
Kirigami.Action {
text: i18n("Add to queue")
icon.name: "media-playlist-append"

View File

@ -146,8 +146,8 @@ Kirigami.SwipeListItem {
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
},*/
Kirigami.Action {
iconName: "media-playback-start"
text: "Play"
icon.name: "media-playback-start"
onTriggered: {
audio.entry = entry
audio.play()