Wiki save as epub: close highlight menu when switching document (#3417)

This commit is contained in:
poire-z
2017-10-24 15:22:10 +02:00
committed by Frans de Jonge
parent 3639c3e7c6
commit 99161d6b03

View File

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