Skip to content

Commit

Permalink
filemanagercollection: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 authored Jan 26, 2025
1 parent f6e641a commit 205bf17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/apps/filemanager/filemanagercollection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,12 @@ function FileManagerCollection:searchCollections(coll_name)
if document then
local loaded, found
if document.loadDocument then -- CRE
-- We will be half-loading documents and may mess with crengine's state.
-- Fortunately, this is run in a subprocess, so we won't be affecting the
-- main process's crengine state or any document opened in the main
-- process (we furthermore prevent this feature when one is opened).
-- To avoid creating half-rendered/invalide cache files, it's best to disable
-- crengine saving of such cache files.
if not self.is_cre_cache_disabled then
local cre = require("document/credocument"):engineInit()
cre.initCache("", 0)
Expand Down

0 comments on commit 205bf17

Please sign in to comment.