[applets/batterymonitor] Replace JS functions() with => arrow notation

GIT_SILENT
wilder-5.24
ivan tkachenko 4 years ago committed by Nate Graham
parent 02358208fb
commit 103f80e841
  1. 2
      applets/batterymonitor/package/contents/ui/batterymonitor.qml

@ -161,7 +161,7 @@ Item {
}
plasmoid.setAction("showPercentage", i18n("Show Battery Percentage on Icon"), "format-number-percent");
plasmoid.action("showPercentage").checkable = true;
plasmoid.action("showPercentage").checked = Qt.binding(() => {return plasmoid.configuration.showPercentage;});
plasmoid.action("showPercentage").checked = Qt.binding(() => plasmoid.configuration.showPercentage);
if (batterymonitor.kcmAuthorized) {
plasmoid.removeAction("configure");

Loading…
Cancel
Save