mirror of https://github.com/ppy/osu
Formatting
This commit is contained in:
parent
d85f17159f
commit
d988194dd3
|
@ -21,12 +21,13 @@ public class RestoreDefaultValueButton<T> : Container, IHasTooltip, IHasCurrentV
|
|||
{
|
||||
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
|
||||
|
||||
private BindableWithCurrent<T> current = new BindableWithCurrent<T>();
|
||||
private readonly BindableWithCurrent<T> current = new BindableWithCurrent<T>();
|
||||
|
||||
public Bindable<T> Current
|
||||
{
|
||||
get => current.Current;
|
||||
set {
|
||||
set
|
||||
{
|
||||
current.Current = value;
|
||||
current.ValueChanged += _ => UpdateState();
|
||||
current.DisabledChanged += _ => UpdateState();
|
||||
|
|
Loading…
Reference in New Issue