add preLoadSettings methods for cache_document_size setting

cache_document_size should be configurable for
every docuemnt and it must be loaded before
document open, so I added the preLoadSettings method
This commit is contained in:
Qingping Hou
2012-04-19 14:39:50 +08:00
parent bc299784ca
commit b03d589ae9
2 changed files with 11 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ function openFile(filename)
end
if reader then
InfoMessage:show("Opening document, please wait... ", 0)
reader:preLoadSettings(filename)
local ok, err = reader:open(filename)
if ok then
reader:loadSettings(filename)