mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
History: Don't flash when swapping documents
(i.e., when History is spawned from ReaderUI, delay the flash until we *show* the next widget, instead of when we close the current RD instance). Prevents flashing the InfoMessage.
This commit is contained in:
@@ -502,7 +502,8 @@ function ReaderUI:onShowingReader()
|
||||
self.tearing_down = true
|
||||
self.dithered = nil
|
||||
|
||||
self:onClose()
|
||||
-- Don't enforce a "full" refresh, leave that decision to the next widget we'll *show*.
|
||||
self:onClose(false)
|
||||
end
|
||||
|
||||
-- Same as above, except we don't close it yet. Useful for plugins that need to close custom Menus before calling showReader.
|
||||
|
||||
Reference in New Issue
Block a user