Skip to content

Commit

Permalink
Merge pull request #4005 from AaronGullickson/option-dialog-listener
Browse files Browse the repository at this point in the history
Add action listener for DialogOptionListeners
  • Loading branch information
SJuliez authored Apr 20, 2024
2 parents 7da6a15 + b03b928 commit b6aeff0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MekHQ/src/mekhq/gui/dialog/CustomizePersonDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -1397,4 +1397,9 @@ private void decreasePhenotypeBonus(String skillType) {
public void optionClicked(DialogOptionComponent arg0, IOption arg1, boolean arg2) {

}

@Override
public void optionSwitched(DialogOptionComponent comp, IOption option, int i) {

}
}
5 changes: 5 additions & 0 deletions MekHQ/src/mekhq/gui/dialog/QuirksDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public void optionClicked(DialogOptionComponent dialogOptionComponent, IOption i
//Not Used Included because QuriksPanel requires a DialogOptionListener interface.
}

@Override
public void optionSwitched(DialogOptionComponent comp, IOption option, int i) {

}

@Override
public void actionPerformed(ActionEvent e) {
if (okayButton.equals(e.getSource())) {
Expand Down

0 comments on commit b6aeff0

Please sign in to comment.