mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Fix potential crash when exiting editor test mode
This commit is contained in:
parent
7ed05277f8
commit
7ac04d0478
@ -35,7 +35,13 @@ namespace osu.Game.Screens.Edit.GameplayTest
|
|||||||
ScoreProcessor.HasCompleted.BindValueChanged(completed =>
|
ScoreProcessor.HasCompleted.BindValueChanged(completed =>
|
||||||
{
|
{
|
||||||
if (completed.NewValue)
|
if (completed.NewValue)
|
||||||
Scheduler.AddDelayed(this.Exit, RESULTS_DISPLAY_DELAY);
|
{
|
||||||
|
Scheduler.AddDelayed(() =>
|
||||||
|
{
|
||||||
|
if (this.IsCurrentScreen())
|
||||||
|
this.Exit();
|
||||||
|
}, RESULTS_DISPLAY_DELAY);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user