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:
parent
12b027f2c3
commit
94eacbca5d
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user