mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Move PartRoom calls
This commit is contained in:
parent
2353c204ee
commit
692f5c289d
@ -106,20 +106,11 @@ namespace osu.Game.Screens.Multi.Lounge
|
||||
|
||||
protected override bool OnExiting(Screen next)
|
||||
{
|
||||
roomManager?.PartRoom();
|
||||
|
||||
Filter.Search.HoldFocus = false;
|
||||
// no base call; don't animate
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override void OnResuming(Screen last)
|
||||
{
|
||||
roomManager?.PartRoom();
|
||||
|
||||
base.OnResuming(last);
|
||||
}
|
||||
|
||||
protected override void OnSuspending(Screen next)
|
||||
{
|
||||
base.OnSuspending(next);
|
||||
|
@ -42,6 +42,12 @@ namespace osu.Game.Screens.Multi
|
||||
TimeBetweenPolls = 5000;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
PartRoom();
|
||||
}
|
||||
|
||||
public void CreateRoom(Room room)
|
||||
{
|
||||
room.Host.Value = api.LocalUser;
|
||||
|
Loading…
Reference in New Issue
Block a user