TextViewer: Allow tweaking the region of the refresh done on close.

Use it in ReaderBookmarks to clear flash_ui highlights.

Fix #7230
This commit is contained in:
NiLuJe
2021-02-03 16:57:23 +01:00
parent b41567e0e6
commit d4d5dd25ba
2 changed files with 12 additions and 1 deletions

View File

@@ -350,7 +350,12 @@ function ReaderBookmark:onShowBookmark()
end,
},
}
}
},
-- Request a full-screen refresh on close, to clear potential flash_ui highlights
close_callback = function()
-- TextViewer does a "partial" on CloseWidget
UIManager:setDirty(nil, "partial")
end,
}
UIManager:show(self.textviewer)
return true