mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Ensure the current screen is current when a sub screen is found as the target
This commit is contained in:
@ -103,8 +103,12 @@ 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