mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
covermenu: fix file dialog (#11576)
This commit is contained in:
@@ -232,7 +232,9 @@ function CoverMenu:updateItems(select_number)
|
||||
-- we replace it by ours.
|
||||
-- (FileManager may replace file_chooser.showFileDialog after we've been called once, so we need
|
||||
-- to replace it again if it is not ours)
|
||||
if self.showFileDialog and self.showFileDialog ~= self.showFileDialog_ours then
|
||||
if self.path -- FileManager only
|
||||
and (not self.showFileDialog_ours -- never replaced
|
||||
or self.showFileDialog ~= self.showFileDialog_ours) then -- it is no more ours
|
||||
-- We need to do it at nextTick, once FileManager has instantiated
|
||||
-- its FileChooser completely
|
||||
UIManager:nextTick(function()
|
||||
|
||||
Reference in New Issue
Block a user