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:
parent
362e4802f7
commit
5eee46074c
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user