From 8fbf98aac26ed0500de7b8cb7e516e3e3d0f9c3d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 17 Aug 2020 21:33:27 +0530 Subject: [PATCH] On closing highlights panel go back to text --- src/pyj/read_book/overlay.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 2d52875f75..d551818232 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -675,6 +675,7 @@ class Overlay: self.view.get_current_cfi('show-bookmarks', do_it) def show_highlights(self): + self.hide_current_panel() if ui_operations.toggle_highlights: self.hide() ui_operations.toggle_highlights()