1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 17:12:54 +08:00

Fix Bot users have all the profile sections in ProfileOverlay

This commit is contained in:
Andrei Zavatski 2019-09-27 09:22:25 +03:00
parent 12b027f2c3
commit 94eacbca5d
2 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Overlays
Clear(); Clear();
lastSection = null; lastSection = null;
sections = new ProfileSection[] sections = !user.IsBot ? new ProfileSection[]
{ {
//new AboutSection(), //new AboutSection(),
new RecentSection(), new RecentSection(),
@ -53,6 +53,9 @@ namespace osu.Game.Overlays
new HistoricalSection(), new HistoricalSection(),
new BeatmapsSection(), new BeatmapsSection(),
new KudosuSection() new KudosuSection()
} : new ProfileSection[]
{
//new AboutSection(),
}; };
tabs = new ProfileTabControl tabs = new ProfileTabControl

View File

@ -78,6 +78,9 @@ namespace osu.Game.Users
[JsonProperty(@"is_bng")] [JsonProperty(@"is_bng")]
public bool IsBNG; public bool IsBNG;
[JsonProperty(@"is_bot")]
public bool IsBot;
[JsonProperty(@"is_active")] [JsonProperty(@"is_active")]
public bool Active; public bool Active;