mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00: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 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!;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user