1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Refresh IssueList on changes in VisibilitySection

This commit is contained in:
Naxess 2021-05-12 01:30:45 +02:00
parent 1bb7d412da
commit ad78aec1ef
2 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,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,
@ -92,10 +92,10 @@ namespace osu.Game.Screens.Edit.Verify
{
base.LoadComplete();
refresh();
Refresh();
}
private void refresh()
public void Refresh()
{
var issues = generalVerifier.Run(beatmap, workingBeatmap.Value);

View File

@ -31,6 +31,7 @@ namespace osu.Game.Screens.Edit.Verify
};
checkbox.Current.BindTo(IssueList.ShowType[issueType]);
checkbox.Current.BindValueChanged(_ => IssueList.Refresh());
Flow.Add(checkbox);
}
}