Revert "restore the old functionality to the stoplight"
This reverts commit 3648de3a8da40699d9d749ab2b9f9c0261d81584.
This commit is contained in:
parent
95a99a2f0b
commit
d2822b06aa
@ -23,18 +23,7 @@ namespace LibationWinForms
|
|||||||
|
|
||||||
private void ProductsGrid_LiberateClicked(object sender, LibraryBook e)
|
private void ProductsGrid_LiberateClicked(object sender, LibraryBook e)
|
||||||
{
|
{
|
||||||
if (e.Book.Audio_Exists())
|
if (e.Book.UserDefinedItem.BookStatus != LiberatedStatus.Liberated)
|
||||||
{
|
|
||||||
// liberated: open explorer to file
|
|
||||||
var filePath = AudibleFileStorage.Audio.GetPath(e.Book.AudibleProductId);
|
|
||||||
if (!Go.To.File(filePath))
|
|
||||||
{
|
|
||||||
var suffix = string.IsNullOrWhiteSpace(filePath) ? "" : $":\r\n{filePath}";
|
|
||||||
MessageBox.Show($"File not found" + suffix);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (e.Book.UserDefinedItem.BookStatus != LiberatedStatus.Liberated)
|
|
||||||
{
|
{
|
||||||
SetQueueCollapseState(false);
|
SetQueueCollapseState(false);
|
||||||
processBookQueue1.AddDownloadDecrypt(e);
|
processBookQueue1.AddDownloadDecrypt(e);
|
||||||
@ -44,7 +33,16 @@ namespace LibationWinForms
|
|||||||
SetQueueCollapseState(false);
|
SetQueueCollapseState(false);
|
||||||
processBookQueue1.AddDownloadPdf(e);
|
processBookQueue1.AddDownloadPdf(e);
|
||||||
}
|
}
|
||||||
|
else if (e.Book.Audio_Exists())
|
||||||
|
{
|
||||||
|
// liberated: open explorer to file
|
||||||
|
var filePath = AudibleFileStorage.Audio.GetPath(e.Book.AudibleProductId);
|
||||||
|
if (!Go.To.File(filePath))
|
||||||
|
{
|
||||||
|
var suffix = string.IsNullOrWhiteSpace(filePath) ? "" : $":\r\n{filePath}";
|
||||||
|
MessageBox.Show($"File not found" + suffix);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetQueueCollapseState(bool collapsed)
|
private void SetQueueCollapseState(bool collapsed)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user