Fix whitespace and inconsistencies in action text

This commit is contained in:
Bart De Vries 2021-05-03 16:00:05 +02:00
parent 0846dd9d9b
commit dd5e10f973
1 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,7 @@ Kirigami.ScrollablePage {
} }
} }
} }
actions.left: Kirigami.Action { actions.left: Kirigami.Action {
text: !entry.queueStatus ? i18n("Add to queue") : i18n("Remove from queue") text: !entry.queueStatus ? i18n("Add to queue") : i18n("Remove from queue")
icon.name: !entry.queueStatus ? "media-playlist-append" : "list-remove" icon.name: !entry.queueStatus ? "media-playlist-append" : "list-remove"
@ -112,12 +113,14 @@ Kirigami.ScrollablePage {
} }
} }
} }
actions.right: Kirigami.Action { actions.right: Kirigami.Action {
text: i18n("Delete download") text: i18n("Delete download")
icon.name: "delete" icon.name: "delete"
onTriggered: entry.enclosure.deleteFile() onTriggered: entry.enclosure.deleteFile()
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded && entry.queueStatus visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded && entry.queueStatus
} }
contextualActions: [ contextualActions: [
Kirigami.Action { Kirigami.Action {
text: i18n("Reset play position") text: i18n("Reset play position")
@ -131,7 +134,7 @@ Kirigami.ScrollablePage {
} }
}, },
Kirigami.Action { Kirigami.Action {
text: entry.new ? i18n("Remove \"new\" label") : i18n("Label as new") text: entry.new ? i18n("Remove \"new\" label") : i18n("Label as \"new\"")
onTriggered: { onTriggered: {
entry.new = !entry.new entry.new = !entry.new
} }