Avoid multiple editor screens potentially loading on top of each other

This commit is contained in:
Dean Herbert 2020-09-08 19:50:29 +09:00
parent 1943883b9f
commit a501df954b

View File

@ -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)