batterymonitor: fix warn levels
This commit is contained in:
parent
37b61cb0d9
commit
c6e9afc74a
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ Scope {
|
|||
if (!UPower.onBattery)
|
||||
return;
|
||||
|
||||
const p = UPower.displayDevice.percentage;
|
||||
const p = UPower.displayDevice.percentage * 100;
|
||||
for (const level of root.warnLevels) {
|
||||
if (p <= level.level && !level.warned) {
|
||||
level.warned = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue