This commit is contained in:
Kovid Goyal 2017-10-15 12:46:58 +05:30
parent 26f3761ea3
commit 1abf0f35f4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -236,19 +236,21 @@ class View:
self.show_content_popup() self.show_content_popup()
self.content_popup_overlay.show_footnote(data) self.content_popup_overlay.show_footnote(data)
def show_chrome(self): def hide_overlays(self):
self.overlay.hide()
self.search_overlay.hide() self.search_overlay.hide()
self.content_popup_overlay.hide() self.content_popup_overlay.hide()
def show_chrome(self):
self.hide_overlays()
self.overlay.show() self.overlay.show()
def show_search(self): def show_search(self):
self.overlay.hide() self.hide_overlays()
self.content_popup_overlay.hide()
self.search_overlay.show() self.search_overlay.show()
def show_content_popup(self): def show_content_popup(self):
self.overlay.hide() self.hide_overlays()
self.search_overlay.hide()
self.content_popup_overlay.show() self.content_popup_overlay.show()
def set_margins(self): def set_margins(self):
@ -398,11 +400,6 @@ class View:
cfi = '/' + rest cfi = '/' + rest
return name, cfi return name, cfi
def hide_overlays(self):
self.overlay.hide()
self.search_overlay.hide()
self.content_popup_overlay.hide()
def display_book(self, book): def display_book(self, book):
self.hide_overlays() self.hide_overlays()
is_current_book = self.book and self.book.key == book.key is_current_book = self.book and self.book.key == book.key