From 0e83551e8d84c6bde3de4c2749943d9cbe70ec1d Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 20 May 2021 20:42:04 +0200 Subject: [PATCH] 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. --- frontend/apps/reader/readerui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/apps/reader/readerui.lua b/frontend/apps/reader/readerui.lua index f5d8bcaba..85e0c7772 100644 --- a/frontend/apps/reader/readerui.lua +++ b/frontend/apps/reader/readerui.lua @@ -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.