Kobo: Flag all the boards similar to the Libra 2 as unreliable (Clara 2E

& Nia).

And also disable the jump marker on those, like we did for the Libra 2.
This commit is contained in:
NiLuJe
2022-10-27 22:05:59 +02:00
parent bf574bfaaf
commit cac37ad018
2 changed files with 15 additions and 1 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 = 20220930
local CURRENT_MIGRATION_DATE = 20221027
-- Retrieve the date of the previous migration, if any
local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0)
@@ -479,5 +479,15 @@ if last_migration_date < 20220930 then
end
end
-- Extend the 20220205 hack to *all* the devices flagged as unreliable...
if last_migration_date < 20221027 then
logger.info("Performing one-time migration for 20221027")
local Device = require("device")
if Device:isKobo() and not Device:hasReliableMxcWaitFor() then
G_reader_settings:makeFalse("followed_link_marker")
end
end
-- We're done, store the current migration date
G_reader_settings:saveSetting("last_migration_date", CURRENT_MIGRATION_DATE)