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 committed 2012-04-19 14:39:50 +08:00
1 parent bc299784ca
commit b03d589ae9
2 files changed
+11 -2

No files matched your search

+1
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)