Showing chrome should close an active footnote popup first and only show chrome if the user repeats the action. Fixes #2041848 [[Enchanement] E-book viewer: Esc should close the footnote window](https://bugs.launchpad.net/calibre/+bug/2041848)

This commit is contained in:
Kovid Goyal 2023-11-16 16:57:54 +05:30
parent 6b7a0ed306
commit 50474f005c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -719,6 +719,10 @@ class View:
self.hints.show()
def show_chrome(self, data):
if self.content_popup_overlay.is_visible:
self.content_popup_overlay.hide()
return
self.content_popup_overlay
elements = {}
if data and data.elements:
elements = data.elements