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

@@ -660,7 +660,9 @@ function TouchMenu:updateItems()
batt_symbol = ""
end
end
time_info_txt = BD.wrap(time_info_txt) .. " " .. BD.wrap("") .. BD.wrap(batt_symbol) .. BD.wrap(batt_lvl .. "%")
if not Device:isDesktop() then
time_info_txt = BD.wrap(time_info_txt) .. " " .. BD.wrap("") .. BD.wrap(batt_symbol) .. BD.wrap(batt_lvl .. "%")
end
self.time_info:setText(time_info_txt)
-- recalculate dimen based on new layout