mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Ensure the current screen is current when a sub screen is found as the target
This commit is contained in:
@ -103,7 +103,11 @@ namespace osu.Game
|
|||||||
if (current is IHasSubScreenStack currentSubScreen)
|
if (current is IHasSubScreenStack currentSubScreen)
|
||||||
{
|
{
|
||||||
if (findValidTarget(currentSubScreen.SubScreenStack.CurrentScreen))
|
if (findValidTarget(currentSubScreen.SubScreenStack.CurrentScreen))
|
||||||
|
{
|
||||||
|
// should be correct in theory, but currently untested/unused in existing implementations.
|
||||||
|
current.MakeCurrent();
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (validScreens.Any(t => t.IsAssignableFrom(type)))
|
if (validScreens.Any(t => t.IsAssignableFrom(type)))
|
||||||
|
Reference in New Issue
Block a user