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:
parent
bd80cf656a
commit
c48b5eebdd
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user