Trying to fix a warning in the plasmoid: "root not defined"

This commit is contained in:
Albert Vaca 2014-07-01 01:25:54 +02:00
parent 12411da360
commit cd8864fd92

View file

@ -53,8 +53,8 @@ QtObject {
if (available) {
battery = DeviceBatteryDbusInterfaceFactory.create(deviceId)
battery.stateChanged.connect(function(charging) {root.charging = charging})
battery.chargeChanged.connect(function(charge) {root.charge = charge})
battery.stateChanged.connect(function(c) {charging = c})
battery.chargeChanged.connect(function(c) {charge = c})
startupCheck1.setPendingCall(battery.isCharging())
startupCheck2.setPendingCall(battery.charge())