mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Status bar: hide battery if level higher than threshold (#7876)
closes #7242
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user