Merge pull request #25376 from peppy/verify-screen-refresh-on-enter

Automatically refresh the verify screen's issue list on re-entering it
This commit is contained in:
Bartłomiej Dach 2023-11-06 12:40:11 +01:00 committed by GitHub
commit 9f6304b9ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}
}
}