FileLiberator is now DB ignorant. IProcessables update UserDaefinedData which notifies the view model.

This commit is contained in:
Michael Bucari-Tovo 2021-08-21 20:49:36 -06:00
parent d826885728
commit 40b3a9990d
8 changed files with 52 additions and 28 deletions

View file

@ -52,10 +52,7 @@ namespace FileLiberator
if (!moveResults.movedAudioFile)
return new StatusHandler { "Cannot find final audio file after decryption" };
// need to update before Audio_Exists will return true
ApplicationServices.LibraryCommands.UpdateBook(libraryBook.Book, LiberatedStatus.Liberated);
libraryBook.Book.UserDefinedItem.BookStatus = LiberatedStatus.Liberated;
return new StatusHandler();
}