[kcms/virtualdesktops] Enable apply button when typing desktop name

Currently the apply button will only be enabled when you press enter or
change focus away from the text field which is somewhat inintuitive.

Instead enable the apply button as soon as the text changed.

BUG: 435014
This commit is contained in:
Nicolas Fella 2021-05-22 13:54:44 +02:00
parent d8855cc62a
commit 86ce04a7fc

View file

@ -53,9 +53,12 @@ KCM.ScrollViewKCM {
readOnly: true readOnly: true
onTextEdited: {
Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text);
}
onEditingFinished: { onEditingFinished: {
readOnly = true; readOnly = true;
Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text);
} }
} }