From f3fd87af7bb083dc97d054d3a0c6b731acdeca59 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 12 Nov 2024 20:32:59 +0900 Subject: [PATCH] Make `DrawableMatchRoom` structurally match other implementations --- .../Screens/OnlinePlay/Match/DrawableMatchRoom.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/osu.Game/Screens/OnlinePlay/Match/DrawableMatchRoom.cs b/osu.Game/Screens/OnlinePlay/Match/DrawableMatchRoom.cs index 5d4b6b6404..e5d3bd1586 100644 --- a/osu.Game/Screens/OnlinePlay/Match/DrawableMatchRoom.cs +++ b/osu.Game/Screens/OnlinePlay/Match/DrawableMatchRoom.cs @@ -20,10 +20,16 @@ namespace osu.Game.Screens.OnlinePlay.Match { public Action? OnEdit; + public new required Bindable SelectedItem + { + get => selectedItem; + set => selectedItem.Current = value; + } + [Resolved] private IAPIProvider api { get; set; } = null!; - private readonly BindableWithCurrent current = new BindableWithCurrent(); + private readonly BindableWithCurrent selectedItem = new BindableWithCurrent(); private readonly IBindable host = new Bindable(); private readonly bool allowEdit; private Drawable? editButton; @@ -52,12 +58,6 @@ namespace osu.Game.Screens.OnlinePlay.Match } } - public new required Bindable SelectedItem - { - get => current; - set => current.Current = value; - } - protected override void LoadComplete() { base.LoadComplete();