mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
desktop: disable battery on touch menu and reader footer
isDesktop and isEmulator are now different entities
This commit is contained in:
committed by
Martín Fernández
parent
2ae796eb2a
commit
8e831eb756
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user