Changed KCM to launch in system settings

KCM used to open in a separate window, changed that behaviour to launch in system settings when launched via the plasmoid.

BUG: 446337
This commit is contained in:
Phani Pavan Kambhampati 2023-07-30 07:30:52 +00:00 committed by Albert Vaca Cintora
parent b454a6f880
commit c5b955fe10
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ PlasmaExtras.Representation {
helpfulAction: Action {
text: i18n("Pair a Device...")
icon.name: "list-add"
onTriggered: KdeConnect.OpenConfig.openConfiguration()
onTriggered: KCMShell.openSystemSettings("kcm_kdeconnect")
enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0
}

View file

@ -40,7 +40,7 @@ Item
Plasmoid.preferredRepresentation: isConstrained ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation
function action_launchkcm() {
OpenConfig.openConfiguration()
KCMShell.openSystemSettings("kcm_kdeconnect");
}
Component.onCompleted: {