From 86ce04a7fc856c1a9a8be949435b754049113bea Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 22 May 2021 13:54:44 +0200 Subject: [PATCH] [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 --- src/kcmkwin/kwindesktop/package/contents/ui/main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml index b39351046e..e531d5730e 100644 --- a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml +++ b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml @@ -53,9 +53,12 @@ KCM.ScrollViewKCM { readOnly: true + onTextEdited: { + Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text); + } + onEditingFinished: { readOnly = true; - Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text); } }