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:
parent
fbb76ba598
commit
c8d21f2c3f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user