From 452c6dccf4185ae28d61b132e7d02fe0b73631bb Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Wed, 7 Feb 2024 21:03:34 -0800 Subject: [PATCH] cleanup toggle between "keep acct team" and "use bulk api" implement the following behavior: - checking one unchecks the other - unchecking one does not change state of the other --- .../dataloader/ui/AdvancedSettingsDialog.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/salesforce/dataloader/ui/AdvancedSettingsDialog.java b/src/main/java/com/salesforce/dataloader/ui/AdvancedSettingsDialog.java index a83af64e..9c8cc99f 100644 --- a/src/main/java/com/salesforce/dataloader/ui/AdvancedSettingsDialog.java +++ b/src/main/java/com/salesforce/dataloader/ui/AdvancedSettingsDialog.java @@ -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")); @@ -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) {