mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Close calibre search when opening document (#4978)
Fixes https://github.com/koreader/koreader/issues/4225.
This commit is contained in:
@@ -556,6 +556,7 @@ function Search:showresults()
|
||||
text = self.data[i][self.authors] .. ": " .. self.data[i][self.title],
|
||||
callback = function()
|
||||
ReaderUI:showReader(book)
|
||||
self.search_menu:onClose()
|
||||
end
|
||||
})
|
||||
i = i + 1
|
||||
@@ -662,6 +663,7 @@ function Search:browse(option, run, chosen)
|
||||
path = self.data[i][self.path],
|
||||
callback = function()
|
||||
ReaderUI:showReader(book)
|
||||
self.search_menu:onClose()
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user