1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Merge pull request #2980 from peppy/fix-exit-race-condition

Fix pressing escape too fast causing multiple exit attempts at song select
This commit is contained in:
Dean Herbert 2018-07-09 19:10:41 +09:00 committed by GitHub
commit 37f0095ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,11 @@ namespace osu.Game.Screens.Select
Height = filter_height, Height = filter_height,
FilterChanged = c => Carousel.Filter(c), FilterChanged = c => Carousel.Filter(c),
Background = { Width = 2 }, Background = { Width = 2 },
Exit = Exit, Exit = () =>
{
if (IsCurrentScreen)
Exit();
},
}, },
} }
}, },