Switch RestoreDefaultsValueButton to use HasPendingTasks to avoid tooltip always showing

This commit is contained in:
Dean Herbert 2021-03-12 15:23:11 +09:00
parent d8db29de35
commit e7707eee94
1 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,8 @@ private void updateDisabled()
protected internal class RestoreDefaultValueButton : Container, IHasTooltip
{
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
private Bindable<T> bindable;
public Bindable<T> Bindable
@ -147,7 +149,6 @@ public RestoreDefaultValueButton()
RelativeSizeAxes = Axes.Y;
Width = SettingsPanel.CONTENT_MARGINS;
Alpha = 0f;
AlwaysPresent = true;
}
[BackgroundDependencyLoader]