mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
6b7a0ed306
commit
50474f005c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user