Commit 5fd6df9f 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.

(cherry picked from commit 25be7754)
parent 70afddad
......@@ -29,13 +29,13 @@ Item {
Plasmoid.compactRepresentation: CompactRepresentation { }
Plasmoid.fullRepresentation: FullRepresentation { }
function action_bluedevilkcm() {["bluedevildevices", "bluedeviladapters", "bluedevilglobal"]);
function action_configure() {
Component.onCompleted: {
plasmoid.setAction("bluedevilkcm", i18n("Configure &Bluetooth..."), "preferences-system-bluetooth");
plasmoid.setAction("configure", i18n("Configure &Bluetooth..."), "preferences-system-bluetooth");
......@@ -53,15 +53,14 @@ PlasmaExtras.PlasmoidHeading {
PlasmaComponents3.ToolButton {
id: openSettingsButton
visible: plasmoid.action("configure").enabled "configure"
onClicked: {["bluedevildevices", "bluedeviladapters", "bluedevilglobal"]);
onClicked: plasmoid.action("configure").trigger()
PlasmaComponents3.ToolTip {
text: i18n("Configure Bluetooth...")
text: plasmoid.action("configure").text
} plasmoid.action("configure").text
Markdown is supported
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