diff --git a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml index 722395c9ae..1d72a59c19 100644 --- a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml +++ b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml @@ -85,6 +85,7 @@ KCM.ScrollViewKCM { Kirigami.Action { id: renameAction enabled: model && !model.IsMissing + visible: !applyAction.visible iconName: "edit-rename" tooltip: i18nc("@info:tooltip", "Rename") onTriggered: { @@ -93,6 +94,15 @@ KCM.ScrollViewKCM { nameField.forceActiveFocus(); } }, + Kirigami.Action { + id: applyAction + visible: !nameField.readOnly + iconName: "dialog-ok-apply" + tooltip: i18nc("@info:tooltip", "Confirm new name") + onTriggered: { + nameField.readOnly = true; + } + }, Kirigami.Action { enabled: model && !model.IsMissing && desktopsList.count !== 1 iconName: "edit-delete"