1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Merge pull request #11419 from peppy/fix-transform-mutation-from-disposal-thread

Fix RemoveBlockingOverlay causing transform mutation from disposal threads
This commit is contained in:
Bartłomiej Dach 2021-01-05 20:45:32 +01:00 committed by GitHub
commit 11e228b781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,11 +151,11 @@ namespace osu.Game
updateBlockingOverlayFade();
}
public void RemoveBlockingOverlay(OverlayContainer overlay)
public void RemoveBlockingOverlay(OverlayContainer overlay) => Schedule(() =>
{
visibleBlockingOverlays.Remove(overlay);
updateBlockingOverlayFade();
}
});
/// <summary>
/// Close all game-wide overlays.