[fix] CoverBrowser: fix calling upvalue crash in MosaicMenu (#10164)

Regression introduced in #10140.
This commit is contained in:
Frans de Jonge
2023-02-26 22:55:56 +01:00
committed by GitHub
parent 03a9551565
commit 26dc43553b

View File

@@ -577,7 +577,7 @@ function MosaicMenuItem:update()
if DocSettings:hasSidecarFile(self.filepath) then
self.been_opened = true
self.menu:updateCache(self.filepath, nil, true, bookinfo.pages) -- create new cache entry if absent
_, percent_finished, status = unpack(self.menu.cover_info_cache[self.filepath])
dummy, percent_finished, status = unpack(self.menu.cover_info_cache[self.filepath])
end
self.percent_finished = percent_finished
self.status = status