[kcmkwin] Apply grid delegate KCMs on double-click

To be consistent with plasma-workspace KCMs which we applied this to in
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/606
This commit is contained in:
Nate Graham 2021-04-29 20:14:05 -06:00
parent 706eb16b3a
commit 2a6fe9748f
2 changed files with 6 additions and 0 deletions

View file

@ -103,6 +103,9 @@ KCM.GridView {
kcm.theme = index
view.currentIndex = index
}
onDoubleClicked: {
kcm.save();
}
}
Connections {
target: kcm

View file

@ -35,5 +35,8 @@ KCM.GridViewKCM {
onClicked: {
kcm.settings.inputMethod = model.desktopFileName;
}
onDoubleClicked: {
kcm.save();
}
}
}