1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:23:21 +08:00

Isolate refreshing to IssueList

This commit is contained in:
Naxess 2021-05-13 05:25:02 +02:00
parent fbb76ba598
commit c8d21f2c3f
2 changed files with 3 additions and 5 deletions

View File

@ -69,7 +69,7 @@ namespace osu.Game.Screens.Edit.Verify
new TriangleButton
{
Text = "Refresh",
Action = Refresh,
Action = refresh,
Size = new Vector2(120, 40),
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
@ -83,10 +83,10 @@ namespace osu.Game.Screens.Edit.Verify
{
base.LoadComplete();
Refresh();
verify.HiddenIssueTypes.BindCollectionChanged((o, s) => refresh(), runOnceImmediately: true);
}
public void Refresh()
private void refresh()
{
var issues = generalVerifier.Run(beatmap, workingBeatmap.Value);

View File

@ -43,8 +43,6 @@ namespace osu.Game.Screens.Edit.Verify
verify.HiddenIssueTypes.Add(issueType);
else
verify.HiddenIssueTypes.Remove(issueType);
verify.IssueList.Refresh();
});
Flow.Add(checkbox);