1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

Don't reload the context when clicking selected year button

This commit is contained in:
Andrei Zavatski 2021-05-20 15:45:39 +03:00
parent bd80cf656a
commit c48b5eebdd

View File

@ -109,7 +109,11 @@ namespace osu.Game.Overlays.News.Sidebar
{
IdleColour = isCurrent ? Color4.White : colourProvider.Light2;
HoverColour = isCurrent ? Color4.White : colourProvider.Light1;
Action = () => overlay?.ShowYear(Year);
Action = () =>
{
if (!isCurrent)
overlay?.ShowYear(Year);
};
}
}
}