mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08:00
Fix incorrect implementation of IHasCurrentValue
in FooterButtonFreeMods
This commit is contained in:
parent
f2e56bbb65
commit
1d7b8ea21a
@ -23,7 +23,18 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
{
|
{
|
||||||
public partial class FooterButtonFreeMods : FooterButton, IHasCurrentValue<IReadOnlyList<Mod>>
|
public partial class FooterButtonFreeMods : FooterButton, IHasCurrentValue<IReadOnlyList<Mod>>
|
||||||
{
|
{
|
||||||
public Bindable<IReadOnlyList<Mod>> Current { get; set; } = new BindableWithCurrent<IReadOnlyList<Mod>>();
|
private readonly BindableWithCurrent<IReadOnlyList<Mod>> current = new BindableWithCurrent<IReadOnlyList<Mod>>(Array.Empty<Mod>());
|
||||||
|
|
||||||
|
public Bindable<IReadOnlyList<Mod>> Current
|
||||||
|
{
|
||||||
|
get => current.Current;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ArgumentNullException.ThrowIfNull(value);
|
||||||
|
|
||||||
|
current.Current = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private OsuSpriteText count = null!;
|
private OsuSpriteText count = null!;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user