mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09: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
|
protected internal class RestoreDefaultValueButton : Container, IHasTooltip
|
||||||
{
|
{
|
||||||
|
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
|
||||||
|
|
||||||
private Bindable<T> bindable;
|
private Bindable<T> bindable;
|
||||||
|
|
||||||
public Bindable<T> Bindable
|
public Bindable<T> Bindable
|
||||||
@ -147,7 +149,6 @@ namespace osu.Game.Overlays.Settings
|
|||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
Width = SettingsPanel.CONTENT_MARGINS;
|
Width = SettingsPanel.CONTENT_MARGINS;
|
||||||
Alpha = 0f;
|
Alpha = 0f;
|
||||||
AlwaysPresent = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user