Fix delete books and remove Documents permission request

This commit is contained in:
chrox
2024-10-28 14:47:12 +01:00
parent 7c3e70b8de
commit 08e2d05985
7 changed files with 24 additions and 51 deletions
@@ -76,6 +76,7 @@ export const useReaderStore = create<ReaderStore>((set, get) => ({
const bookIndex = library.findIndex((b) => b.hash === book.hash);
if (bookIndex !== -1) {
library.splice(bookIndex, 1);
appService.deleteBook(book);
}
set({ library });
appService.saveLibraryBooks(library);