mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Wiki save as epub: close highlight menu when switching document (#3417)
This commit is contained in:
@@ -298,6 +298,10 @@ function DictQuickLookup:update()
|
||||
local ReaderUI = require("apps/reader/readerui")
|
||||
local reader = ReaderUI:_getRunningInstance()
|
||||
if reader then
|
||||
-- close Highlight menu if any still shown
|
||||
if reader.highlight then
|
||||
reader.highlight:onClose()
|
||||
end
|
||||
reader:onClose()
|
||||
end
|
||||
ReaderUI:showReader(epub_path)
|
||||
|
||||
Reference in New Issue
Block a user