mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Remove % from frontlight level on devices other than Kobo (#3162)
This commit is contained in:
@@ -43,7 +43,11 @@ local footerTextGeneratorMap = {
|
||||
if not Device:hasFrontlight() then return "L: NA" end
|
||||
local powerd = Device:getPowerDevice()
|
||||
if powerd:isFrontlightOn() then
|
||||
return ("L: %d%%"):format(powerd:frontlightIntensity())
|
||||
if Device:isKobo() then
|
||||
return ("L: %d%%"):format(powerd:frontlightIntensity())
|
||||
else
|
||||
return ("L: %d"):format(powerd:frontlightIntensity())
|
||||
end
|
||||
else
|
||||
return "L: Off"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user