1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Automatically refresh the verify screen's issue list on re-entering it

Addresses https://github.com/ppy/osu/discussions/25365.
This commit is contained in:
Dean Herbert 2023-11-06 19:34:34 +09:00
parent 408ae84111
commit 51c891e2e4
No known key found for this signature in database
2 changed files with 11 additions and 5 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Screens.Edit.Verify
new RoundedButton
{
Text = "Refresh",
Action = refresh,
Action = Refresh,
Size = new Vector2(120, 40),
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
@ -86,13 +86,13 @@ namespace osu.Game.Screens.Edit.Verify
{
base.LoadComplete();
verify.InterpretedDifficulty.BindValueChanged(_ => refresh());
verify.HiddenIssueTypes.BindCollectionChanged((_, _) => refresh());
verify.InterpretedDifficulty.BindValueChanged(_ => Refresh());
verify.HiddenIssueTypes.BindCollectionChanged((_, _) => Refresh());
refresh();
Refresh();
}
private void refresh()
public void Refresh()
{
var issues = generalVerifier.Run(context);

View File

@ -56,5 +56,11 @@ namespace osu.Game.Screens.Edit.Verify
}
};
}
protected override void PopIn()
{
base.PopIn();
IssueList.Refresh();
}
}
}