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:
parent
b454a6f880
commit
c5b955fe10
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ PlasmaExtras.Representation {
|
||||||
helpfulAction: Action {
|
helpfulAction: Action {
|
||||||
text: i18n("Pair a Device...")
|
text: i18n("Pair a Device...")
|
||||||
icon.name: "list-add"
|
icon.name: "list-add"
|
||||||
onTriggered: KdeConnect.OpenConfig.openConfiguration()
|
onTriggered: KCMShell.openSystemSettings("kcm_kdeconnect")
|
||||||
enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0
|
enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ Item
|
||||||
Plasmoid.preferredRepresentation: isConstrained ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation
|
Plasmoid.preferredRepresentation: isConstrained ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation
|
||||||
|
|
||||||
function action_launchkcm() {
|
function action_launchkcm() {
|
||||||
OpenConfig.openConfiguration()
|
KCMShell.openSystemSettings("kcm_kdeconnect");
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
Loading…
Reference in a new issue