mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1953469 [Private bug](https://bugs.launchpad.net/calibre/+bug/1953469)
This commit is contained in:
parent
c1dc45a79f
commit
2c6a73534a
@ -585,21 +585,7 @@ class OpenBook: # {{{
|
|||||||
pass # Dont allow panel to be closed by a click
|
pass # Dont allow panel to be closed by a click
|
||||||
|
|
||||||
def show(self, container):
|
def show(self, container):
|
||||||
container.style.backgroundColor = get_color('window-background')
|
simple_overlay_title(_('Open a book'), self.overlay, container)
|
||||||
container.appendChild(E.div(
|
|
||||||
style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: flex-start',
|
|
||||||
E.div(
|
|
||||||
svgicon('close'), style=f'cursor:pointer',
|
|
||||||
onclick=def(event):
|
|
||||||
event.preventDefault(), event.stopPropagation()
|
|
||||||
if self.closeable:
|
|
||||||
self.overlay.hide_current_panel(event)
|
|
||||||
else:
|
|
||||||
ui_operations.quit()
|
|
||||||
,
|
|
||||||
class_='simple-link'),
|
|
||||||
E.h2(_('Open a book'), style='margin-left: 1rem'),
|
|
||||||
))
|
|
||||||
create_open_book(container, self.overlay.view?.book)
|
create_open_book(container, self.overlay.view?.book)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user