1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 06:33:17 +08:00

Merge pull request #5387 from peppy/fix-results-tabs

Fix results screen not showing first tab correctly
This commit is contained in:
Dean Herbert 2019-07-18 01:09:09 +09:00 committed by GitHub
commit e57097020a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,9 +256,12 @@ namespace osu.Game.Screens.Ranking
}
};
foreach (var t in CreateResultPages())
modeChangeButtons.AddItem(t);
modeChangeButtons.Current.Value = modeChangeButtons.Items.FirstOrDefault();
var pages = CreateResultPages();
foreach (var p in pages)
modeChangeButtons.AddItem(p);
modeChangeButtons.Current.Value = pages.FirstOrDefault();
modeChangeButtons.Current.BindValueChanged(page =>
{