Prefix battery percentage w/ a + when charging.
Adresses comments on MR. Add a comment explaining the magic behind CRe's charging icon when using CRE's full (top) status bar.
This commit is contained in:
1 parent
02938163b9
commit
ce5f66ccbc
3 files changed
+3
-3
No files matched your search
@@ -196,8 +196,7 @@ end
|
||||
|
||||
function ReaderFooter:getBatteryInfo()
|
||||
local powerd = Device:getPowerDevice()
|
||||
--local state = powerd:isCharging() and -1 or powerd:getCapacity()
|
||||
return "B:" .. powerd:getCapacity() .. "%"
|
||||
return "B:" .. (powerd:isCharging() and "+" or "") .. powerd:getCapacity() .. "%"
|
||||
end
|
||||
|
||||
function ReaderFooter:getTimeInfo()
|
||||
|
||||
Reference in new issue
Block a user