mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Move room resetting logic from MatchSubScreen to LoungeSubScreen
This commit is contained in:
@ -53,9 +53,6 @@ namespace osu.Game.Screens.Multi.Match
|
||||
|
||||
private MatchLeaderboard leaderboard;
|
||||
|
||||
[Resolved]
|
||||
private Bindable<Room> currentRoom { get; set; }
|
||||
|
||||
public MatchSubScreen(Room room)
|
||||
{
|
||||
Title = room.RoomID.Value == null ? "New room" : room.Name.Value;
|
||||
@ -185,10 +182,6 @@ namespace osu.Game.Screens.Multi.Match
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
RoomManager?.PartRoom();
|
||||
|
||||
if (roomId.Value == null)
|
||||
currentRoom.Value = new Room();
|
||||
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user