mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Fix "perform from screen" not considering screen load state
This commit is contained in:
@ -89,6 +89,10 @@ namespace osu.Game
|
||||
// check if we are already at a valid target screen.
|
||||
if (validScreens.Any(t => t.IsAssignableFrom(type)))
|
||||
{
|
||||
if (!((Drawable)current).IsLoaded)
|
||||
// wait until screen is loaded before invoking action.
|
||||
return true;
|
||||
|
||||
finalAction(current);
|
||||
Cancel();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user