mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Avoid multiple editor screens potentially loading on top of each other
This commit is contained in:
parent
1943883b9f
commit
a501df954b
@ -398,7 +398,11 @@ namespace osu.Game.Screens.Edit
|
||||
break;
|
||||
}
|
||||
|
||||
LoadComponentAsync(currentScreen, screenContainer.Add);
|
||||
LoadComponentAsync(currentScreen, newScreen =>
|
||||
{
|
||||
if (newScreen == currentScreen)
|
||||
screenContainer.Add(newScreen);
|
||||
});
|
||||
}
|
||||
|
||||
private void seek(UIEvent e, int direction)
|
||||
|
Loading…
Reference in New Issue
Block a user