mirror of https://github.com/ppy/osu
Fix "Beatmap not downloaded" tooltip hint not showing in daily challenge
This commit is contained in:
parent
834ad3524a
commit
9323f89357
|
@ -21,8 +21,8 @@ public abstract partial class ReadyButton : RoundedButton, IHasTooltip
|
|||
private void load(OnlinePlayBeatmapAvailabilityTracker beatmapTracker)
|
||||
{
|
||||
availability.BindTo(beatmapTracker.Availability);
|
||||
|
||||
availability.BindValueChanged(_ => updateState());
|
||||
|
||||
Enabled.BindValueChanged(_ => updateState(), true);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ public virtual LocalisableString TooltipText
|
|||
{
|
||||
get
|
||||
{
|
||||
if (Enabled.Value)
|
||||
if (base.Enabled.Value)
|
||||
return string.Empty;
|
||||
|
||||
if (availability.Value.State != DownloadState.LocallyAvailable)
|
||||
|
|
|
@ -68,9 +68,6 @@ public override LocalisableString TooltipText
|
|||
{
|
||||
get
|
||||
{
|
||||
if (Enabled.Value)
|
||||
return string.Empty;
|
||||
|
||||
if (!enoughTimeLeft)
|
||||
return "No time left!";
|
||||
|
||||
|
|
Loading…
Reference in New Issue