From 01f8fd103a28be0df2a49b01eb25c0a9baf05e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20D=C3=A9v=C3=A9nyi?= Date: Wed, 8 Jan 2025 17:59:17 +0100 Subject: [PATCH] Fix non-removable missing books (#978) Fixes #976 --- cozy/ui/library_view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cozy/ui/library_view.py b/cozy/ui/library_view.py index 71c01a91..9f863a6b 100644 --- a/cozy/ui/library_view.py +++ b/cozy/ui/library_view.py @@ -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":