1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:35:35 +08:00

Revert changes to LoungeSubScreen.Join()

- `virtual` modifier was used in mocking.
- The spacing change revert is just mostly to keep it out of the final
  diff.
This commit is contained in:
Bartłomiej Dach 2023-10-12 20:39:04 +02:00
parent 1ce268be3f
commit 6c8490bc7e
No known key found for this signature in database

View File

@ -297,9 +297,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
popoverContainer.HidePopover();
}
public void Join(Room room, string password, Action<Room> onSuccess = null, Action<string> onFailure = null)
{
Schedule(() =>
public virtual void Join(Room room, string password, Action<Room> onSuccess = null, Action<string> onFailure = null) => Schedule(() =>
{
if (joiningRoomOperation != null)
return;
@ -319,7 +317,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
onFailure?.Invoke(error);
});
});
}
/// <summary>
/// Copies a room and opens it as a fresh (not-yet-created) one.