Minor mods for future UI changes
This commit is contained in:
parent
e0248c2d8e
commit
936a1d60a0
10 changed files with 21 additions and 10 deletions
|
|
@ -15,6 +15,7 @@ namespace FileLiberator
|
|||
{
|
||||
public class DownloadDecryptBook : AudioDecodable
|
||||
{
|
||||
public override string Name => "Download & Decrypt";
|
||||
private AudiobookDownloadBase abDownloader;
|
||||
|
||||
public override bool Validate(LibraryBook libraryBook) => !libraryBook.Book.Audio_Exists;
|
||||
|
|
@ -65,7 +66,9 @@ namespace FileLiberator
|
|||
foreach (var tmpFile in entries.Where(f => f.FileType != FileType.AAXC))
|
||||
FileUtility.SaferDelete(tmpFile.Path);
|
||||
|
||||
return new StatusHandler { "Decrypt failed" };
|
||||
return abDownloader?.IsCanceled == true ?
|
||||
new StatusHandler { "Cancelled" } :
|
||||
new StatusHandler { "Decrypt failed" };
|
||||
}
|
||||
|
||||
// moves new files from temp dir to final dest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue