mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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.
This commit is contained in:
@@ -849,6 +849,7 @@ Do you want to prune cache of removed books?]]
|
||||
},
|
||||
text_widget
|
||||
})
|
||||
info.movable[1][1]._size = nil -- reset HorizontalGroup size
|
||||
info.movable:setMovedOffset(orig_moved_offset)
|
||||
info:paintTo(Screen.bb, 0,0)
|
||||
local d = info.movable[1].dimen
|
||||
|
||||
@@ -81,8 +81,13 @@ function CoverMenu:updateItems(select_number)
|
||||
self:_updateItemsBuildUI()
|
||||
|
||||
-- Set the local variables with the things we know
|
||||
current_path = self.path
|
||||
current_cover_specs = self.cover_specs
|
||||
-- These are used only by extractBooksInDirectory(), which should
|
||||
-- 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()
|
||||
self:updatePageInfo(select_number)
|
||||
|
||||
Reference in New Issue
Block a user