[kcms/translations] Be more consistent with inline remove buttons

To be consistent with what we generally do in other places, use the
trashcan icon for the remove button, and only show it when the list has
more than one item in it.

BUG: 437567
BUG: 437566
FIXED-IN: 5.22


(cherry picked from commit c6c4c9adf5)
wilder-5.22
Nate Graham 5 years ago
parent 9dc6c78038
commit b3a04fc0e1
  1. 3
      kcms/translations/package/contents/ui/main.qml

@ -281,7 +281,8 @@ ScrollViewKCM {
Kirigami.Action {
property bool removing: false
enabled: removing || !model.IsMissing
iconName: "list-remove"
iconName: "edit-delete"
visible: languagesList.count > 1
tooltip: i18nc("@info:tooltip", "Remove")
onTriggered: {
removing = true; // Don't crash by re-evaluating `enabled` during destruction.

Loading…
Cancel
Save