covermenu: fix file dialog

reviewable/pr11576/r1
hius07 2 months ago committed by GitHub
parent 424fa9b6fd
commit 0c340ac09d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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()

Loading…
Cancel
Save