Skip to content

Commit 26f4283

Browse files
facchinmcmaglie
authored andcommitted
Preferences: remove outdated preferences
1 parent 4c8ac04 commit 26f4283

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

Diff for: app/src/cc/arduino/view/preferences/Preferences.java

+6-16
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ private void initComponents() {
132132
enableCodeFoldingBox = new javax.swing.JCheckBox();
133133
verifyUploadBox = new javax.swing.JCheckBox();
134134
externalEditorBox = new javax.swing.JCheckBox();
135-
cacheCompiledCore = new javax.swing.JCheckBox();
136135
checkUpdatesBox = new javax.swing.JCheckBox();
137-
updateExtensionBox = new javax.swing.JCheckBox();
138136
saveVerifyUploadBox = new javax.swing.JCheckBox();
139137
jLabel1 = new javax.swing.JLabel();
140138
jLabel2 = new javax.swing.JLabel();
@@ -277,15 +275,9 @@ public void mouseEntered(java.awt.event.MouseEvent evt) {
277275

278276
checkboxesContainer.add(externalEditorBox);
279277

280-
cacheCompiledCore.setText(tr("Aggressively cache compiled core"));
281-
checkboxesContainer.add(cacheCompiledCore);
282-
283278
checkUpdatesBox.setText(tr("Check for updates on startup"));
284279
checkboxesContainer.add(checkUpdatesBox);
285280

286-
updateExtensionBox.setText(tr("Update sketch files to new extension on save (.pde -> .ino)"));
287-
checkboxesContainer.add(updateExtensionBox);
288-
289281
saveVerifyUploadBox.setText(tr("Save when verifying or uploading"));
290282
checkboxesContainer.add(saveVerifyUploadBox);
291283

@@ -730,7 +722,6 @@ private void autoScaleCheckBoxItemStateChanged(java.awt.event.ItemEvent evt) {//
730722
private javax.swing.JCheckBox enableCodeFoldingBox;
731723
private javax.swing.JButton extendedAdditionalUrlFieldWindow;
732724
private javax.swing.JCheckBox externalEditorBox;
733-
private javax.swing.JCheckBox cacheCompiledCore;
734725
private javax.swing.JTextField fontSizeField;
735726
private javax.swing.JLabel fontSizeLabel;
736727
private javax.swing.JLabel jLabel1;
@@ -759,7 +750,6 @@ private void autoScaleCheckBoxItemStateChanged(java.awt.event.ItemEvent evt) {//
759750
private javax.swing.JLabel showVerboseLabel;
760751
private javax.swing.JTextField sketchbookLocationField;
761752
private javax.swing.JLabel sketchbookLocationLabel;
762-
private javax.swing.JCheckBox updateExtensionBox;
763753
private javax.swing.JCheckBox verboseCompilationBox;
764754
private javax.swing.JCheckBox verboseUploadBox;
765755
private javax.swing.JCheckBox verifyUploadBox;
@@ -834,12 +824,8 @@ private void savePreferencesData() {
834824

835825
PreferencesData.setBoolean("editor.external", externalEditorBox.isSelected());
836826

837-
PreferencesData.setBoolean("compiler.cache_core", cacheCompiledCore.isSelected());
838-
839827
PreferencesData.setBoolean("update.check", checkUpdatesBox.isSelected());
840828

841-
PreferencesData.setBoolean("editor.update_extension", updateExtensionBox.isSelected());
842-
843829
PreferencesData.setBoolean("editor.save_on_verify", saveVerifyUploadBox.isSelected());
844830

845831
PreferencesData.set("boardsmanager.additional.urls", additionalBoardsManagerField.getText().replace("\r\n", "\n").replace("\r", "\n").replace("\n", ","));
@@ -906,11 +892,15 @@ private void showPreferencesData() {
906892

907893
externalEditorBox.setSelected(PreferencesData.getBoolean("editor.external"));
908894

909-
cacheCompiledCore.setSelected(PreferencesData.get("compiler.cache_core") == null || PreferencesData.getBoolean("compiler.cache_core"));
895+
if (PreferencesData.get("compiler.cache_core") == null) {
896+
PreferencesData.setBoolean("compiler.cache_core", true);
897+
}
910898

911899
checkUpdatesBox.setSelected(PreferencesData.getBoolean("update.check"));
912900

913-
updateExtensionBox.setSelected(PreferencesData.get("editor.update_extension") == null || PreferencesData.getBoolean("editor.update_extension"));
901+
if (PreferencesData.get("editor.update_extension") == null) {
902+
PreferencesData.setBoolean("editor.update_extension", true);
903+
}
914904

915905
saveVerifyUploadBox.setSelected(PreferencesData.getBoolean("editor.save_on_verify"));
916906

0 commit comments

Comments
 (0)