desktop: disable battery on touch menu and reader footer

isDesktop and isEmulator are now different entities
This commit is contained in:
Martín Fdez
2020-04-11 17:45:37 +02:00
committed by Martín Fernández
parent 2ae796eb2a
commit 8e831eb756
7 changed files with 12 additions and 7 deletions

View File

@@ -336,6 +336,9 @@ function ReaderFooter:init()
if not Device:hasFrontlight() then
MODE.frontlight = nil
end
if Device:isDesktop() then
MODE.battery = nil
end
for k, v in pairs(MODE) do
mode_tbl[v] = k
end