Fixed: Movies removed from queue re-appearing on refresh

This commit is contained in:
Mark McDowall 2020-04-25 14:12:38 -07:00 committed by Qstick
parent 01e6fbddf4
commit e6479e9a53

View file

@ -59,6 +59,11 @@ public DownloadHistory GetLatestDownloadHistoryItem(string downloadId)
// Events are ordered by date descending. We'll return the most recent expected event.
foreach (var e in events)
{
if (e.EventType == DownloadHistoryEventType.DownloadIgnored)
{
return e;
}
if (e.EventType == DownloadHistoryEventType.DownloadGrabbed)
{
return e;