mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +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:
parent
d614a47614
commit
400984457c
@ -110,10 +110,9 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
private static readonly APINewsSidebar metadata_with_no_posts = new APINewsSidebar
|
private static readonly APINewsSidebar metadata_with_no_posts = new APINewsSidebar
|
||||||
{
|
{
|
||||||
CurrentYear = 2022,
|
CurrentYear = 2021,
|
||||||
Years = new[]
|
Years = new[]
|
||||||
{
|
{
|
||||||
2022,
|
|
||||||
2021,
|
2021,
|
||||||
2020,
|
2020,
|
||||||
2019,
|
2019,
|
||||||
|
Loading…
Reference in New Issue
Block a user