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:
NiLuJe
2021-05-20 20:42:04 +02:00
parent 2c4cbd12a2
commit 0e83551e8d

View File

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