Fixed: Albums removed from queue re-appearing on refresh

Fixes #1392
This commit is contained in:
Qstick 2022-06-04 14:55:00 -05:00
commit 39bbb67f0a

View file

@ -64,6 +64,11 @@ namespace NzbDrone.Core.Download.History
// Events are ordered by date descending. We'll return the most recent expected event. // Events are ordered by date descending. We'll return the most recent expected event.
foreach (var e in events) foreach (var e in events)
{ {
if (e.EventType == DownloadHistoryEventType.DownloadIgnored)
{
return e;
}
if (e.EventType == DownloadHistoryEventType.DownloadGrabbed) if (e.EventType == DownloadHistoryEventType.DownloadGrabbed)
{ {
return e; return e;