Skip to content

Commit

Permalink
Fix #976
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende committed Jan 8, 2025
1 parent 6cda5f3 commit 509425c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cozy/ui/library_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def _open_book_overview_clicked(self, _, book):
def _on_remove_book(self, _, book):
if self._view_model.book_files_exist(book):
DeleteBookView(self._on_remove_book_response, book).present()
else:
self._view_model.remove_book(book)

def _on_remove_book_response(self, _, response, book):
if response != "delete":
Expand Down

0 comments on commit 509425c

Please sign in to comment.