mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Don't reload the context when clicking selected year button
This commit is contained in:
@ -109,7 +109,11 @@ namespace osu.Game.Overlays.News.Sidebar
|
|||||||
{
|
{
|
||||||
IdleColour = isCurrent ? Color4.White : colourProvider.Light2;
|
IdleColour = isCurrent ? Color4.White : colourProvider.Light2;
|
||||||
HoverColour = isCurrent ? Color4.White : colourProvider.Light1;
|
HoverColour = isCurrent ? Color4.White : colourProvider.Light1;
|
||||||
Action = () => overlay?.ShowYear(Year);
|
Action = () =>
|
||||||
|
{
|
||||||
|
if (!isCurrent)
|
||||||
|
overlay?.ShowYear(Year);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user