From 7d38da524317cd855d7dddc9fa654c02d7f910e6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 May 2020 19:52:03 +0530 Subject: [PATCH] Ignore highlight actions if the highight UI is open --- src/pyj/read_book/view.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 6a6bb0bdb5..701647f903 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -1191,6 +1191,8 @@ class View: self.show_name(sr.file_name, initial_position={'type':'search_result', 'search_result':sr, 'replace_history':True}) def highlight_action(self, uuid, which): + if self.create_annotation.is_visible: + return if which is 'create': self.iframe_wrapper.send_message('create_annotation') return