Commit 25be7754 authored by Nate Graham's avatar Nate Graham
Browse files

[applet] Open new KCM from the configure action

Whlie we're at it, also port the action to only appear when it's
available, as for example it would not be when using Kioso Mode.
parent d6d7aa8a
......@@ -29,13 +29,13 @@ Item {
Plasmoid.compactRepresentation: CompactRepresentation { }
Plasmoid.fullRepresentation: FullRepresentation { }
function action_bluedevilkcm() {
KCMShell.open(["bluedevildevices", "bluedeviladapters", "bluedevilglobal"]);
function action_configure() {
KCMShell.openSystemSettings("bluetooth");
}
Component.onCompleted: {
plasmoid.removeAction("configure");
plasmoid.setAction("bluedevilkcm", i18n("Configure &Bluetooth..."), "preferences-system-bluetooth");
plasmoid.setAction("configure", i18n("Configure &Bluetooth..."), "preferences-system-bluetooth");
Logic.init();
}
......
......@@ -53,15 +53,14 @@ PlasmaExtras.PlasmoidHeading {
PlasmaComponents3.ToolButton {
id: openSettingsButton
visible: plasmoid.action("configure").enabled
icon.name: "configure"
onClicked: {
KCMShell.open(["bluedevildevices", "bluedeviladapters", "bluedevilglobal"]);
}
onClicked: plasmoid.action("configure").trigger()
PlasmaComponents3.ToolTip {
text: i18n("Configure Bluetooth...")
text: plasmoid.action("configure").text
}
Accessible.name: plasmoid.action("configure").text
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment