Trying to fix a warning in the plasmoid: "root not defined"
This commit is contained in:
parent
12411da360
commit
cd8864fd92
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue