Hide status bar when Status is null

This commit is contained in:
DrabWeb
2017-05-24 00:45:56 -03:00
parent 247d8e9b21
commit 2be1b00a76
3 changed files with 14 additions and 8 deletions

View File

@ -72,10 +72,9 @@ namespace osu.Game.Overlays.Settings.Sections.General
};
break;
case APIState.Online:
UserPanel p;
Children = new Drawable[]
{
p = new UserPanel(api.LocalUser.Value)
new UserPanel(api.LocalUser.Value)
{
RelativeSizeAxes = Axes.X,
},
@ -86,7 +85,6 @@ namespace osu.Game.Overlays.Settings.Sections.General
Action = api.Logout
}
};
p.Status.Value = new UserStatusOnline();
break;
}