diff --git a/frontend/docsettings.lua b/frontend/docsettings.lua index 9cba169aa..c6ea5fe58 100644 --- a/frontend/docsettings.lua +++ b/frontend/docsettings.lua @@ -56,9 +56,9 @@ function DocSettings:open(docfile) sidecar_file = sidecar_path, data = {} } - local ok, stored = pcall(dofile, new.history_file or "") + local ok, stored = pcall(dofile, new.sidecar_file or "") if not ok then - ok, stored = pcall(dofile, new.sidecar_file or "") + ok, stored = pcall(dofile, new.history_file or "") if not ok then -- try legacy conf path, for backward compatibility. this also -- takes care of reader legacy setting