Remove % from frontlight level on devices other than Kobo (#3162)

pull/3166/head
Robert 7 years ago committed by Frans de Jonge
parent 568e8f667a
commit 40ec848098

@ -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

Loading…
Cancel
Save