From b2ef81527b1e82fa2a73f668bd9c5453da3d1526 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 5 Feb 2022 19:28:33 +0100 Subject: [PATCH] Kobo: Disable the jump marker on the Libra 2 Temporary (?) workaround for the Libra 2 EPDC race issues, since we haven't really found any better solution, and so far, newer kernels haven't really helped... Re #8414 --- frontend/ui/data/onetime_migration.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/ui/data/onetime_migration.lua b/frontend/ui/data/onetime_migration.lua index a5c86219e..12fd81359 100644 --- a/frontend/ui/data/onetime_migration.lua +++ b/frontend/ui/data/onetime_migration.lua @@ -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 = 20220116 +local CURRENT_MIGRATION_DATE = 20220205 -- Retrieve the date of the previous migration, if any local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0) @@ -355,5 +355,16 @@ if last_migration_date < 20220116 then end end +-- Disable the jump marker on the Libra 2, to avoid the worst of epdc race issues... +-- c.f., https://github.com/koreader/koreader/issues/8414 +if last_migration_date < 20220205 then + logger.info("Performing one-time migration for 20220205") + + local Device = require("device") + if Device:isKobo() and Device.model == "Kobo_io" 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)