mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +08:00
Fix an endless feedback loop
This commit is contained in:
parent
7c9d3c9742
commit
d20011ba58
@ -7,7 +7,12 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
protected override bool OnSelectionFinalised()
|
protected override bool OnSelectionFinalised()
|
||||||
{
|
{
|
||||||
Exit();
|
Schedule(() =>
|
||||||
|
{
|
||||||
|
// needs to be scheduled else we enter an infinite feedback loop.
|
||||||
|
if (IsCurrentScreen) Exit();
|
||||||
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user