1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Add IssueList filtering based on those bindables

This commit is contained in:
Naxess 2021-05-12 01:29:46 +02:00
parent 2e4399f0c1
commit 1bb7d412da

View File

@ -102,9 +102,22 @@ namespace osu.Game.Screens.Edit.Verify
if (rulesetVerifier != null)
issues = issues.Concat(rulesetVerifier.Run(beatmap, workingBeatmap.Value));
issues = filter(issues);
table.Issues = issues
.OrderBy(issue => issue.Template.Type)
.ThenBy(issue => issue.Check.Metadata.Category);
}
private IEnumerable<Issue> filter(IEnumerable<Issue> issues)
{
foreach (IssueType issueType in ShowType.Keys)
{
if (!ShowType[issueType].Value)
issues = issues.Where(issue => issue.Template.Type != issueType);
}
return issues;
}
}
}