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:
commit
6e7bb87977
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user