mirror of https://github.com/ppy/osu
Fix RemoveBlockingOverlay causing transform mutation from disposal threads
This commit is contained in:
parent
cd7a5ca23a
commit
3b08faa0ea
|
@ -151,11 +151,11 @@ public void AddBlockingOverlay(OverlayContainer overlay)
|
|||
updateBlockingOverlayFade();
|
||||
}
|
||||
|
||||
public void RemoveBlockingOverlay(OverlayContainer overlay)
|
||||
public void RemoveBlockingOverlay(OverlayContainer overlay) => Schedule(() =>
|
||||
{
|
||||
visibleBlockingOverlays.Remove(overlay);
|
||||
updateBlockingOverlayFade();
|
||||
}
|
||||
});
|
||||
|
||||
/// <summary>
|
||||
/// Close all game-wide overlays.
|
||||
|
|
Loading…
Reference in New Issue