effects/overview: Save desktop name when the text field loses focus

Replace onAccepted with onEditingFinished.
This commit is contained in:
Fushan Wen 2021-10-31 19:17:22 +08:00 committed by Nate Graham
parent f0f2f0f469
commit 61f7b2e499

View file

@ -203,7 +203,7 @@ Item {
visible: label.state == "editing"
color: PlasmaCore.ColorScope.textColor
text: delegate.desktop.name
onAccepted: {
onEditingFinished: {
delegate.desktop.name = text;
label.stopEditing();
}