1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:12:57 +08:00

Fix weird behaviour in test scene

Due to a callback set up in another place, clicking away from the 2022
year after launching the test scene would remove the 2022 button
(because the callback was returning metadata without it). For simplicity
just trim the 2022 year to make sure both test scenes use the same
consistent set of years.
This commit is contained in:
Bartłomiej Dach 2021-05-17 19:16:30 +02:00
parent d614a47614
commit 400984457c

View File

@ -110,10 +110,9 @@ namespace osu.Game.Tests.Visual.Online
private static readonly APINewsSidebar metadata_with_no_posts = new APINewsSidebar
{
CurrentYear = 2022,
CurrentYear = 2021,
Years = new[]
{
2022,
2021,
2020,
2019,