Skip to content

Commit

Permalink
covermenu: fix file dialog (#11576)
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 committed Mar 20, 2024
1 parent 9387fcd commit c8c4e03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/coverbrowser.koplugin/covermenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8c4e03

Please sign in to comment.