Skip to content

Commit 1f16215

Browse files
author
jantje
committed
Gui in preferences was not in sync with the actual upload before build
I had changed from "YES" and "NO" to Const.TRUE and Const.FALSE but the gui page still used "TRUE" and "FALSE"
1 parent 9cab117 commit 1f16215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/PreferencePage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class PreferencePage extends FieldEditorPreferencePage implements IWorkbe
3939
public PreferencePage() {
4040
super(org.eclipse.jface.preference.FieldEditorPreferencePage.GRID);
4141
setDescription(Messages.ui_workspace_settings);
42-
42+
4343
ScopedPreferenceStore preferences = new ScopedPreferenceStore(InstanceScope.INSTANCE, Const.NODE_ARDUINO);
4444
preferences.setDefault(Const.KEY_OPEN_SERIAL_WITH_MONITOR, Defaults.OPEN_SERIAL_WITH_MONITOR);
4545
preferences.setDefault(Const.KEY_AUTO_IMPORT_LIBRARIES, Defaults.AUTO_IMPORT_LIBRARIES);
@@ -103,7 +103,7 @@ protected void createFieldEditors() {
103103
Dialog.applyDialogFont(parent);
104104
createLine(parent, 4);
105105
String[][] YesNoAskOptions = new String[][] { { Messages.ui_ask_every_upload, "ASK" }, //$NON-NLS-1$
106-
{ "Yes", "YES" }, { "No", "NO" } }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
106+
{ "Yes", Const.TRUE }, { "No", Const.FALSE } }; //$NON-NLS-1$ //$NON-NLS-2$
107107
this.buildBeforeUploadOption = new ComboFieldEditor(Const.KEY_BUILD_BEFORE_UPLOAD_OPTION,
108108
Messages.ui_build_before_upload, YesNoAskOptions, parent);
109109
addField(this.buildBeforeUploadOption);

0 commit comments

Comments
 (0)