Skip to content

Commit

Permalink
replace checkboxes by radio buttons in beat/duration/division type menu
Browse files Browse the repository at this point in the history
these items behave like radio buttons: clicking on an already checked item
leaves it checked
  • Loading branch information
guiv42 committed Jun 22, 2024
1 parent 85d77d5 commit 88ea925
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void showItems(){

for (int i = 0; i < TGDivisionType.DIVISION_TYPES.length; i++) {
final int j = i;
this.divisionTypeMenuItems[j] = this.divisionMenuItem.getMenu().createCheckItem();
this.divisionTypeMenuItems[j] = this.divisionMenuItem.getMenu().createRadioItem();
this.divisionTypeMenuItems[j].addSelectionListener(new UISelectionListener() {
public void onSelect(UISelectionEvent event) {
DivisionMenuItem.this.createDivisionTypeAction(DivisionMenuItem.this.createDivisionType(TGDivisionType.DIVISION_TYPES[j])).process();
Expand Down

0 comments on commit 88ea925

Please sign in to comment.