Formatting

This commit is contained in:
Swords 2021-05-15 11:40:42 +10:00
parent d85f17159f
commit d988194dd3
1 changed files with 3 additions and 2 deletions

View File

@ -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();