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.
reviewable/pr10780/r1
NiLuJe 9 months ago
parent 2ba3353d8a
commit 4a0fceeffd

@ -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")

Loading…
Cancel
Save