[fix] Close calibre search when opening document (#4978)

Fixes https://github.com/koreader/koreader/issues/4225.
pull/4981/head
Frans de Jonge 5 years ago committed by GitHub
parent 5690998124
commit 96179670f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save