From 4a0fceeffdaf73810c3f0a9ede8d0858e620adb7 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 2 Aug 2023 18:57:14 +0200 Subject: [PATCH] OTM: Don't keep it in scope forever. First, don't require it so as not to pin it in package.loaded; just use dofile And, second, do that in an explicitly scoped block because nothing in there should persist, when we named it "one time", we meant it ;p. --- reader.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reader.lua b/reader.lua index cd2c0750e..d055e0136 100755 --- a/reader.lua +++ b/reader.lua @@ -190,7 +190,9 @@ CanvasContext:init(Device) Version:updateVersionLog(Device.model) -- Handle one time migration stuff (settings, deprecation, ...) in case of an upgrade... -require("ui/data/onetime_migration") +do + dofile("frontend/ui/data/onetime_migration.lua") +end -- UI mirroring for RTL languages, and text shaping configuration local Bidi = require("ui/bidi")