mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00: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