Add "addToQueue" action for entry if relevant

This commit is contained in:
Bart De Vries 2021-04-16 11:19:37 +02:00
parent f5930c8399
commit 7a3cd64c6b
1 changed files with 8 additions and 9 deletions

View File

@ -145,20 +145,19 @@ Kirigami.SwipeListItem {
audio.entry = entry;
audio.play();
}
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded && entry.queueStatus
}
/*,
visible: entry.queueStatus && entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
},
Kirigami.Action {
text: i18n("Add to queue")
icon.name: "media-playlist-append"
visible: !entry.queueStatus && entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
onTriggered: { DataManager.addToQueue(entry) }
} /*,
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"
visible: entry.enclosure && !entry.queueStatus
onTriggered: { DataManager.addToQueue(entry) }
}*/
]
}