mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-26 04:33:01 +01:00
Fixed: Quality Profile group order no longer used when ordering results
This commit is contained in:
parent
08b65a954d
commit
b8b82189f7
@ -26,12 +26,12 @@ namespace NzbDrone.Core.Profiles.Qualities
|
||||
return lastAllowed.Items.Last().Quality;
|
||||
}
|
||||
|
||||
public QualityIndex GetIndex(Quality quality)
|
||||
public QualityIndex GetIndex(Quality quality, bool respectGroupOrder = false)
|
||||
{
|
||||
return GetIndex(quality.Id);
|
||||
return GetIndex(quality.Id, respectGroupOrder);
|
||||
}
|
||||
|
||||
public QualityIndex GetIndex(int id)
|
||||
public QualityIndex GetIndex(int id, bool respectGroupOrder = false)
|
||||
{
|
||||
for (var i = 0; i < Items.Count; i++)
|
||||
{
|
||||
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Profiles.Qualities
|
||||
|
||||
if (groupItem.Quality.Id == id)
|
||||
{
|
||||
return new QualityIndex(i, g);
|
||||
return respectGroupOrder ? new QualityIndex(i, g) : new QualityIndex(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user