mirror of https://github.com/ppy/osu
Switch RestoreDefaultsValueButton to use HasPendingTasks to avoid tooltip always showing
This commit is contained in:
parent
d8db29de35
commit
e7707eee94
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue