Skip to content

Commit

Permalink
chore: lines
Browse files Browse the repository at this point in the history
  • Loading branch information
agaertner committed Jan 1, 2024
1 parent 2bb1f68 commit b19927b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blish HUD/Controls/MenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ protected override void OnClick(MouseEventArgs e) {
if (_canCheck && this.MouseOverIconBox) {
// Mouse was clicked inside of the checkbox
Checked = !Checked;

} else if (_overSection && !_children.IsEmpty) {
// Mouse was clicked inside of the mainbody of the MenuItem

GameService.Content.PlaySoundEffectByName($"menu-click-{RandomUtil.GetRandom(1,4)}");
ToggleAccordionState();

} else if (_overSection && _canCheck) {
} else if (_overSection && _canCheck) {
// Mouse was clicked inside of the mainbody of the MenuItem,
// but we have no children, so we toggle checkbox
Checked = !Checked;
Expand Down

0 comments on commit b19927b

Please sign in to comment.