1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Merge pull request #12005 from peppy/fix-settings-reset-button-tooltips

Switch RestoreDefaultsValueButton to use HasPendingTasks to avoid tooltip always showing
This commit is contained in:
Dan Balasescu 2021-03-12 16:06:38 +09:00 committed by GitHub
commit 6e7bb87977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,8 @@ namespace osu.Game.Overlays.Settings
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 @@ namespace osu.Game.Overlays.Settings
RelativeSizeAxes = Axes.Y;
Width = SettingsPanel.CONTENT_MARGINS;
Alpha = 0f;
AlwaysPresent = true;
}
[BackgroundDependencyLoader]