From 7872bd3bc1224d39fea47709925d68dd074cf744 Mon Sep 17 00:00:00 2001 From: robert00s Date: Thu, 13 Apr 2017 18:54:30 +0200 Subject: [PATCH] Fix: Frontlight level in Status bar in Kobos without light --- frontend/apps/reader/modules/readerfooter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readerfooter.lua b/frontend/apps/reader/modules/readerfooter.lua index 9ee640d3c..ed3278110 100644 --- a/frontend/apps/reader/modules/readerfooter.lua +++ b/frontend/apps/reader/modules/readerfooter.lua @@ -442,7 +442,9 @@ function ReaderFooter:addToMainMenu(menu_items) table.insert(sub_items, getMinibarOption("percentage")) table.insert(sub_items, getMinibarOption("book_time_to_read")) table.insert(sub_items, getMinibarOption("chapter_time_to_read")) - table.insert(sub_items, getMinibarOption("frontlight")) + if Device:hasFrontlight() then + table.insert(sub_items, getMinibarOption("frontlight")) + end table.insert(sub_items, getMinibarOption("mem_usage")) end