mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Split ShowIssueTypes
dict into hidden and configurable lists
This way `VerifyScreen` is decoupled from which options `VisibilitySection` provides. Bindings are a bit less neat, though.
This commit is contained in:
@ -102,13 +102,7 @@ namespace osu.Game.Screens.Edit.Verify
|
||||
|
||||
private IEnumerable<Issue> filter(IEnumerable<Issue> issues)
|
||||
{
|
||||
foreach (var issueType in verify.ShowIssueType.Keys)
|
||||
{
|
||||
if (!verify.ShowIssueType[issueType].Value)
|
||||
issues = issues.Where(issue => issue.Template.Type != issueType);
|
||||
}
|
||||
|
||||
return issues;
|
||||
return issues.Where(issue => !verify.HiddenIssueTypes.Contains(issue.Template.Type));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user