Skip to content

Commit

Permalink
Fix non-removable missing books (#978)
Browse files Browse the repository at this point in the history
Fixes #976
  • Loading branch information
rdbende authored Jan 8, 2025
1 parent 8450008 commit 01f8fd1
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 01f8fd1

Please sign in to comment.