CoverBrowser: fix a few "Extract and cache" issues

Ignore path and cover specs when last invoked menu
was History.
Fix InfoMessage size, broken by InfoMessage auto resize.
pull/4786/head
poire-z 5 years ago
parent 766b199880
commit ad7dc86a43

@ -849,6 +849,7 @@ Do you want to prune cache of removed books?]]
}, },
text_widget text_widget
}) })
info.movable[1][1]._size = nil -- reset HorizontalGroup size
info.movable:setMovedOffset(orig_moved_offset) info.movable:setMovedOffset(orig_moved_offset)
info:paintTo(Screen.bb, 0,0) info:paintTo(Screen.bb, 0,0)
local d = info.movable[1].dimen local d = info.movable[1].dimen

@ -81,8 +81,13 @@ function CoverMenu:updateItems(select_number)
self:_updateItemsBuildUI() self:_updateItemsBuildUI()
-- Set the local variables with the things we know -- Set the local variables with the things we know
current_path = self.path -- These are used only by extractBooksInDirectory(), which should
current_cover_specs = self.cover_specs -- use the cover_specs set for FileBrowser, and not those from History.
-- Hopefully, we get self.path=nil when called fro History
if self.path then
current_path = self.path
current_cover_specs = self.cover_specs
end
-- As done in Menu:updateItems() -- As done in Menu:updateItems()
self:updatePageInfo(select_number) self:updatePageInfo(select_number)

Loading…
Cancel
Save