mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
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:
commit
9f6304b9ab
@ -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);
|
||||
|
||||
|
@ -56,5 +56,11 @@ namespace osu.Game.Screens.Edit.Verify
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
base.PopIn();
|
||||
IssueList.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user