Status bar: hide battery if level higher than threshold (#7876)

closes #7242
This commit is contained in:
hius07
2021-06-22 20:03:05 +03:00
committed by GitHub
parent 12ebffc669
commit c6ccc73d55
2 changed files with 41 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ local lfs = require("libs/libkoreader-lfs")
local logger = require("logger")
-- Date at which the last migration snippet was added
local CURRENT_MIGRATION_DATE = 20210531
local CURRENT_MIGRATION_DATE = 20210622
-- Retrieve the date of the previous migration, if any
local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0)
@@ -219,8 +219,9 @@ if last_migration_date < 20210508 then
end
-- 20210518, ReaderFooter, https://github.com/koreader/koreader/pull/7702
if last_migration_date < 20210518 then
logger.info("Performing one-time migration for 20210518")
-- 20210622, ReaderFooter, https://github.com/koreader/koreader/pull/7876
if last_migration_date < 20210622 then
logger.info("Performing one-time migration for 20210622")
local ReaderFooter = require("apps/reader/modules/readerfooter")
local settings = G_reader_settings:readSetting("footer", ReaderFooter.default_settings)