1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Automatically close settings and notification overlays when opening main overlay

Closes #21162.
This commit is contained in:
Dean Herbert 2022-11-08 12:03:25 +09:00
parent 644c31130e
commit 2163cd212b

View File

@ -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);