Move room resetting logic from MatchSubScreen to LoungeSubScreen

This commit is contained in:
Jamie Taylor
2019-03-07 16:49:48 +09:00
parent 6e5ea78ca2
commit 50c1b3a576
2 changed files with 8 additions and 7 deletions

View File

@ -107,6 +107,14 @@ namespace osu.Game.Screens.Multi.Lounge
Filter.Search.HoldFocus = false;
}
public override void OnResuming(IScreen last)
{
base.OnResuming(last);
if (currentRoom.Value?.RoomID.Value == null)
currentRoom.Value = new Room();
}
private void joinRequested(Room room)
{
processingOverlay.Show();