Verified Commit e124330e authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Use modern JavsScript arrow function syntax

GIT_SILENT
parent 0a9b734b
Pipeline #152278 passed with stage
in 13 minutes and 22 seconds
......@@ -19,7 +19,7 @@ Item {
imagePath: "icons/battery"
colorGroup: PlasmaCore.ColorScope.colorGroup
onRepaintNeeded: { // needed to detect the hint item go away when theme changes
batterySvg.visible = Qt.binding(function() { return !otherBatteriesSvg.visible && (!svg.hasElement("hint-dont-superimpose-fill") || !hasBattery); })
batterySvg.visible = Qt.binding(() => !otherBatteriesSvg.visible && (!svg.hasElement("hint-dont-superimpose-fill") || !hasBattery))
}
}
......
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