mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Automatically close settings and notification overlays when opening main overlay
Closes #21162.
This commit is contained in:
parent
644c31130e
commit
2163cd212b
@ -1006,6 +1006,9 @@ namespace osu.Game
|
||||
if (overlay.IsPresent)
|
||||
return;
|
||||
|
||||
Settings.Hide();
|
||||
Notifications.Hide();
|
||||
|
||||
// Show above all other overlays.
|
||||
if (overlay.IsLoaded)
|
||||
overlayContent.ChangeChildDepth(overlay, (float)-Clock.CurrentTime);
|
||||
|
Loading…
Reference in New Issue
Block a user