mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
34f94e2033
commit
f7a7150f28
@ -115,8 +115,8 @@ class Boss:
|
|||||||
# Note that book_id could refer to a deleted book, that is, a book no
|
# Note that book_id could refer to a deleted book, that is, a book no
|
||||||
# longer in local storage
|
# longer in local storage
|
||||||
self.current_mode = 'book_list'
|
self.current_mode = 'book_list'
|
||||||
|
self.ui.show_panel(self.ui.ROOT_PANEL, force=True)
|
||||||
self.apply_mode()
|
self.apply_mode()
|
||||||
self.push_state()
|
|
||||||
|
|
||||||
def change_books(self, data):
|
def change_books(self, data):
|
||||||
data.search_result.sort = data.search_result.sort.split(',')[:2].join(',')
|
data.search_result.sort = data.search_result.sort.split(',')[:2].join(',')
|
||||||
|
@ -69,6 +69,7 @@ class DeleteBook: # {{{
|
|||||||
pass # Dont allow panel to be closed by a click
|
pass # Dont allow panel to be closed by a click
|
||||||
|
|
||||||
def delete_book(self):
|
def delete_book(self):
|
||||||
|
self.show_working()
|
||||||
view = self.overlay.view
|
view = self.overlay.view
|
||||||
view.ui.db.delete_book(view.book, def(book, errmsg):
|
view.ui.db.delete_book(view.book, def(book, errmsg):
|
||||||
self.overlay.hide_current_panel()
|
self.overlay.hide_current_panel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user