detect full

This commit is contained in:
Jos Dehaes 2021-10-06 15:33:43 +02:00
parent 6bb0e930a2
commit 66072711c2

View file

@ -358,11 +358,11 @@ namespace Cpu {
bool isCharging = CFBooleanGetValue(charging);
if (isCharging) {
status = "charging";
if (percent == 100) {
status = "full";
}
}
}
if (percent == 100) {
status = "full";
}
} else {
has_battery = false;
}