mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Fix mod selects not hiding when their owner screens exit
This commit is contained in:
parent
fdb21fedab
commit
0caea77176
@ -309,7 +309,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
{
|
||||
endHandlingTrack();
|
||||
onLeaving();
|
||||
base.OnSuspending(e);
|
||||
}
|
||||
|
||||
@ -327,7 +327,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
RoomManager?.PartRoom();
|
||||
Mods.Value = Array.Empty<Mod>();
|
||||
|
||||
endHandlingTrack();
|
||||
onLeaving();
|
||||
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
@ -423,6 +423,12 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
Beatmap.BindValueChanged(applyLoopingToTrack, true);
|
||||
}
|
||||
|
||||
private void onLeaving()
|
||||
{
|
||||
userModsSelectOverlay.Hide();
|
||||
endHandlingTrack();
|
||||
}
|
||||
|
||||
private void endHandlingTrack()
|
||||
{
|
||||
Beatmap.ValueChanged -= applyLoopingToTrack;
|
||||
|
@ -155,6 +155,8 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
Mods.Value = initialMods;
|
||||
}
|
||||
|
||||
freeModSelectOverlay.Hide();
|
||||
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
|
@ -659,6 +659,7 @@ namespace osu.Game.Screens.Select
|
||||
return true;
|
||||
|
||||
beatmapInfoWedge.Hide();
|
||||
ModSelect.Hide();
|
||||
|
||||
this.FadeOut(100);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user