Commit fec21bb5 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applets/batterymonitor] Use `plasmoid.action("[name]")` to access text and actions

parent 03e280d1
......@@ -42,21 +42,21 @@ ColumnLayout {
PlasmaComponents3.ToolButton {
icon.name: "documentinfo"
onClicked: batterymonitor.action_energyinformationkcm()
onClicked: plasmoid.action("energyinformationkcm").trigger()
visible: batterymonitor.kcmEnergyInformationAuthorized
PlasmaComponents3.ToolTip {
text: i18n("Show detailed energy information")
text: plasmoid.action("energyinformationkcm").text
}
}
PlasmaComponents3.ToolButton {
icon.name: "configure"
onClicked: batterymonitor.action_powerdevilkcm()
onClicked: plasmoid.action("powerdevilkcm").trigger()
visible: batterymonitor.kcmsAuthorized
PlasmaComponents3.ToolTip {
text: i18n("Configure Power Saving...")
text: plasmoid.action("powerdevilkcm").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