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:
parent
2e4399f0c1
commit
1bb7d412da
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user