1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Fix HasPassword not being in sync with Password value for client-side rooms

This commit is contained in:
Dean Herbert 2021-07-10 14:14:22 +09:00
parent 08c40938db
commit f35d55c32f

View File

@ -126,6 +126,11 @@ namespace osu.Game.Online.Rooms
[JsonIgnore]
public readonly Bindable<int> Position = new Bindable<int>(-1);
public Room()
{
Password.BindValueChanged(p => HasPassword.Value = !string.IsNullOrEmpty(p.NewValue));
}
/// <summary>
/// Create a copy of this room without online information.
/// Should be used to create a local copy of a room for submitting in the future.