diff --git a/osu.Game/Beatmaps/Drawables/Cards/BeatmapCardContent.cs b/osu.Game/Beatmaps/Drawables/Cards/BeatmapCardContent.cs index 681f09c658..e353e61b71 100644 --- a/osu.Game/Beatmaps/Drawables/Cards/BeatmapCardContent.cs +++ b/osu.Game/Beatmaps/Drawables/Cards/BeatmapCardContent.cs @@ -31,7 +31,9 @@ public Drawable ExpandedContent set => dropdownScroll.Child = value; } - public Bindable Expanded { get; } = new BindableBool(); + public IBindable Expanded => expanded; + + private readonly BindableBool expanded = new BindableBool(); private readonly Box background; private readonly Container content; @@ -128,7 +130,7 @@ public void ScheduleShow() scheduledExpandedChange = Scheduler.AddDelayed(() => { if (!Expanded.Disabled) - Expanded.Value = true; + expanded.Value = true; }, 100); } @@ -141,7 +143,7 @@ public void ScheduleHide() scheduledExpandedChange = Scheduler.AddDelayed(() => { if (!Expanded.Disabled) - Expanded.Value = false; + expanded.Value = false; }, 500); } @@ -154,7 +156,7 @@ private void checkForHide() return; scheduledExpandedChange?.Cancel(); - Expanded.Value = false; + expanded.Value = false; } private void keep() @@ -163,7 +165,7 @@ private void keep() return; scheduledExpandedChange?.Cancel(); - Expanded.Value = true; + expanded.Value = true; } private void updateState()