mirror of https://github.com/ppy/osu
Comments
This commit is contained in:
parent
59365bbdce
commit
5f538f03ea
|
@ -203,11 +203,13 @@ private int selectionIndex
|
|||
if (_selectionIndex == value)
|
||||
return;
|
||||
|
||||
// Deselect the previously-selected button
|
||||
if (_selectionIndex != -1)
|
||||
Buttons[_selectionIndex].Selected.Value = false;
|
||||
|
||||
_selectionIndex = value;
|
||||
|
||||
// Select the newly-selected button
|
||||
if (_selectionIndex != -1)
|
||||
Buttons[_selectionIndex].Selected.Value = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue