mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
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.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user