From 5e145846bd48e48febe5b06c7c88064a35df2a6b Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 11 Jun 2022 12:42:00 -0600 Subject: [PATCH] Only check non-liberated books when doing scan remove books. --- Source/LibationWinForms/GridView/ProductsDisplay.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/LibationWinForms/GridView/ProductsDisplay.cs b/Source/LibationWinForms/GridView/ProductsDisplay.cs index 4487a8bd..c4379c1d 100644 --- a/Source/LibationWinForms/GridView/ProductsDisplay.cs +++ b/Source/LibationWinForms/GridView/ProductsDisplay.cs @@ -119,7 +119,10 @@ namespace LibationWinForms.GridView return; var allBooks = productsGrid.GetAllBookEntries(); - var lib = allBooks.Select(lbe => lbe.LibraryBook); + var lib = allBooks + .Select(lbe => lbe.LibraryBook) + .Where(lb => !lb.Book.HasLiberated()); + var removedBooks = await LibraryCommands.FindInactiveBooks(Login.WinformLoginChoiceEager.ApiExtendedFunc, lib, accounts); var removable = allBooks.Where(lbe => removedBooks.Any(rb => rb.Book.AudibleProductId == lbe.AudibleProductId)).ToList();