1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Don't show loading tooltip for now

Should probably be replaced with a loading spinner in the future, don't
really like "loading" tooltips.
This commit is contained in:
Dean Herbert 2021-11-26 22:54:10 +09:00
parent d5d1a4c0b5
commit b8a47755fa

View File

@ -147,7 +147,8 @@ namespace osu.Game.Screens.OnlinePlay
if (showItemOwner)
{
ownerAvatar.Show();
userLookupCache.GetUserAsync(Item.OwnerID).ContinueWith(u => Schedule(() => ownerAvatar.User = u.Result), TaskContinuationOptions.OnlyOnRanToCompletion);
userLookupCache.GetUserAsync(Item.OwnerID)
.ContinueWith(u => Schedule(() => ownerAvatar.User = u.Result), TaskContinuationOptions.OnlyOnRanToCompletion);
}
difficultyIconContainer.Child = new DifficultyIcon(Item.Beatmap.Value, ruleset.Value, requiredMods, performBackgroundDifficultyLookup: false) { Size = new Vector2(ICON_HEIGHT) };
@ -458,7 +459,7 @@ namespace osu.Game.Screens.OnlinePlay
});
}
public LocalisableString TooltipText => User == null ? "loading user..." : $"queued by {User.Username}";
public LocalisableString TooltipText => User == null ? string.Empty : $"queued by {User.Username}";
private class TooltipArea : Component, IHasTooltip
{