This commit is contained in:
Andrei Zavatski
2019-08-01 23:04:18 +03:00
parent e66a3494b9
commit 5547592768
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Tests.Visual.Online
AddStep("four usernames", () => user.Value = new User AddStep("four usernames", () => user.Value = new User
{ {
PreviousUsernames = new[] { "ihavenoidea", "howcani", "makethistext" , "anylonger" }, PreviousUsernames = new[] { "ihavenoidea", "howcani", "makethistext", "anylonger" },
}); });
AddStep("no username", () => user.Value = new User AddStep("no username", () => user.Value = new User

View File

@ -25,11 +25,12 @@ namespace osu.Game.Overlays.Profile.Header
public readonly Bindable<User> User = new Bindable<User>(); public readonly Bindable<User> User = new Bindable<User>();
private readonly HoverIconContainer hoverIcon;
private readonly ContentContainer contentContainer; private readonly ContentContainer contentContainer;
public PreviousUsernamesContainer() public PreviousUsernamesContainer()
{ {
HoverIconContainer hoverIcon;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Width = width; Width = width;
Children = new Drawable[] Children = new Drawable[]
@ -56,7 +57,7 @@ namespace osu.Game.Overlays.Profile.Header
if (usernames.Any()) if (usernames.Any())
{ {
var amount = usernames.Count(); var amount = usernames.Length;
for (int i = 0; i < amount; i++) for (int i = 0; i < amount; i++)
{ {