1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:33:20 +08:00

Merge pull request #10089 from peppy/fix-editor-multiple-screens

Avoid multiple editor screens potentially loading on top of each other
This commit is contained in:
Dan Balasescu 2020-09-08 21:26:10 +09:00 committed by GitHub
commit 69f482f2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,11 @@ namespace osu.Game.Screens.Edit
break; break;
} }
LoadComponentAsync(currentScreen, screenContainer.Add); LoadComponentAsync(currentScreen, newScreen =>
{
if (newScreen == currentScreen)
screenContainer.Add(newScreen);
});
} }
private void seek(UIEvent e, int direction) private void seek(UIEvent e, int direction)