mirror of
https://github.com/ppy/osu
synced 2024-12-28 18:02:53 +00: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