This commit is contained in:
Kovid Goyal 2016-06-08 09:29:05 +05:30
parent 34f94e2033
commit f7a7150f28
2 changed files with 2 additions and 1 deletions

View File

@ -115,8 +115,8 @@ class Boss:
# Note that book_id could refer to a deleted book, that is, a book no
# longer in local storage
self.current_mode = 'book_list'
self.ui.show_panel(self.ui.ROOT_PANEL, force=True)
self.apply_mode()
self.push_state()
def change_books(self, data):
data.search_result.sort = data.search_result.sort.split(',')[:2].join(',')

View File

@ -69,6 +69,7 @@ class DeleteBook: # {{{
pass # Dont allow panel to be closed by a click
def delete_book(self):
self.show_working()
view = self.overlay.view
view.ui.db.delete_book(view.book, def(book, errmsg):
self.overlay.hide_current_panel()