From c60ef2449f26ad633f37e2af5d9468315739ef52 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Fri, 9 Jun 2017 16:05:05 +0800 Subject: [PATCH] Fix initial scroll. --- osu.Game/Users/UserProfile.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game/Users/UserProfile.cs b/osu.Game/Users/UserProfile.cs index 6bf46e5725..5d592a613d 100644 --- a/osu.Game/Users/UserProfile.cs +++ b/osu.Game/Users/UserProfile.cs @@ -76,6 +76,11 @@ namespace osu.Game.Users tabs.Current.ValueChanged += s => { + if (lastSection == null) + { + lastSection = tabs.Current.Value = sections[0]; + return; + } if (lastSection != s) { lastSection = s;