Fix display for new LiberatedStatus values.

This commit is contained in:
Michael Bucari-Tovo 2021-08-21 18:37:07 -06:00
parent 263222d8cc
commit d826885728

View File

@ -40,6 +40,7 @@ namespace LibationWinForms
LiberatedStatus.Liberated => ("Liberated", "green"),
LiberatedStatus.PartialDownload => ("File has been at least\r\npartially downloaded", "yellow"),
LiberatedStatus.NotLiberated => ("Book NOT downloaded", "red"),
LiberatedStatus.Error => ("Book downloaded ERROR", "red"),
_ => throw new Exception("Unexpected liberation state")
};
@ -47,6 +48,7 @@ namespace LibationWinForms
{
LiberatedStatus.Liberated => ("\r\nPDF downloaded", "_pdf_yes"),
LiberatedStatus.NotLiberated => ("\r\nPDF NOT downloaded", "_pdf_no"),
LiberatedStatus.Error => ("\r\nPDF downloaded ERROR", "_pdf_no"),
null => ("", ""),
_ => throw new Exception("Unexpected PDF state")
};