From c5b955fe10173d390150ceeee8d15b64894fc167 Mon Sep 17 00:00:00 2001 From: Phani Pavan Kambhampati Date: Sun, 30 Jul 2023 07:30:52 +0000 Subject: [PATCH] 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 --- plasmoid/package/contents/ui/FullRepresentation.qml | 2 +- plasmoid/package/contents/ui/main.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plasmoid/package/contents/ui/FullRepresentation.qml b/plasmoid/package/contents/ui/FullRepresentation.qml index 93df63c7f..cc4848df6 100644 --- a/plasmoid/package/contents/ui/FullRepresentation.qml +++ b/plasmoid/package/contents/ui/FullRepresentation.qml @@ -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 } diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index 851433cab..5a7d53d1f 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -40,7 +40,7 @@ Item Plasmoid.preferredRepresentation: isConstrained ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation function action_launchkcm() { - OpenConfig.openConfiguration() + KCMShell.openSystemSettings("kcm_kdeconnect"); } Component.onCompleted: {