Re-add completed audiobooks to queue (#1219)
This commit is contained in:
parent
5ab6c1fe70
commit
8aa157f2f6
4 changed files with 22 additions and 0 deletions
|
|
@ -130,6 +130,11 @@ namespace LibationAvalonia.ViewModels
|
|||
return true;
|
||||
}
|
||||
|
||||
public bool RemoveCompleted(LibraryBook libraryBook)
|
||||
=> Queue.FirstOrDefault(b => b?.LibraryBook?.Book?.AudibleProductId == libraryBook.Book.AudibleProductId) is ProcessBookViewModel entry
|
||||
&& entry.Status is ProcessBookStatus.Completed
|
||||
&& Queue.RemoveCompleted(entry);
|
||||
|
||||
public void AddDownloadPdf(LibraryBook libraryBook)
|
||||
=> AddDownloadPdf(new List<LibraryBook>() { libraryBook });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue