1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:43:22 +08:00

Add inline comment to the custom implementation of multiple-selection tab items

This commit is contained in:
Salman Ahmed 2024-04-17 03:00:27 +03:00
parent 9e69268676
commit 24e8b88320

View File

@ -128,6 +128,9 @@ namespace osu.Game.Overlays.BeatmapListing
protected override bool OnClick(ClickEvent e)
{
base.OnClick(e);
// this tab item implementation is not managed by a TabControl,
// therefore we have to manually update Active state and play select sound when this tab item is clicked.
Active.Toggle();
SelectSample.Play();
return true;