Skip to content

Commit

Permalink
cleanup toggle between "keep acct team" and "use bulk api"
Browse files Browse the repository at this point in the history
implement the following behavior:
- checking one unchecks the other
- unchecking one does not change state of the other
  • Loading branch information
ashitsalesforce committed Feb 8, 2024
1 parent cd057b4 commit 452c6dc
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ public void widgetSelected(SelectionEvent e) {
super.widgetSelected(e);
boolean enabled = buttonKeepAccountTeam.getSelection();
// make sure the appropriate check boxes are enabled or disabled
buttonUseBulkApi.setSelection(!enabled);
setBulkSettings(!enabled);
if (enabled) {
buttonUseBulkApi.setSelection(false);
setBulkSettings(false);
}
}
});
buttonKeepAccountTeam.setToolTipText(Labels.getString("AdvancedSettingsDialog.keepAccountTeamHelp"));
Expand All @@ -552,7 +554,9 @@ public void widgetSelected(SelectionEvent e) {
textBatch.setText(String.valueOf(newDefaultBatchSize));
// make sure the appropriate check boxes are enabled or disabled
setBulkSettings(enabled);
buttonKeepAccountTeam.setSelection(!enabled);
if (enabled) {
buttonKeepAccountTeam.setSelection(false);
}
}
});
if (useBulkAPI) {
Expand Down

0 comments on commit 452c6dc

Please sign in to comment.