mirror of
https://github.com/ppy/osu
synced 2025-01-24 14:53:18 +00:00
Fix "perform from screen" not considering screen load state
This commit is contained in:
parent
b86b45b6d2
commit
1be8c6bd9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user