1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Ensure the current screen is current when a sub screen is found as the target

This commit is contained in:
Dean Herbert 2021-02-19 19:45:29 +09:00
parent 362e4802f7
commit 5eee46074c

View File

@ -103,7 +103,11 @@ namespace osu.Game
if (current is IHasSubScreenStack currentSubScreen)
{
if (findValidTarget(currentSubScreen.SubScreenStack.CurrentScreen))
{
// should be correct in theory, but currently untested/unused in existing implementations.
current.MakeCurrent();
return true;
}
}
if (validScreens.Any(t => t.IsAssignableFrom(type)))