Skip to content

Commit c70efd9

Browse files
committed
Fixed --save-prefs regression
Also removed deprecated Prefences.save() method. Fix #6067
1 parent 39f396e commit c70efd9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app/src/processing/app/Base.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ public Base(String[] args) throws Exception {
277277
// Save the preferences. For GUI mode, this happens in the quit
278278
// handler, but for other modes we should also make sure to save
279279
// them.
280-
PreferencesData.save();
280+
if (parser.isForceSavePrefs()) {
281+
PreferencesData.save();
282+
}
281283

282284
if (parser.isInstallBoard()) {
283285
ContributionsIndexer indexer = new ContributionsIndexer(

app/src/processing/app/Preferences.java

-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ public class Preferences {
7575

7676
static final int GUI_SMALL = 6;
7777

78-
@Deprecated
79-
protected static void save() {
80-
PreferencesData.save();
81-
}
82-
8378
@Deprecated
8479
public static String get(String attribute) {
8580
return PreferencesData.get(attribute);

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ ARDUINO 1.8.2
22

33
[ide]
44
* Fix command line: works again with relative paths (regression)
5+
* Fix command line: "--save-prefs" works again (regression)
56
* AVR toolchain has been updated with a tentative fix for the ld-returned-5-exit-status bug
67
* Update arduino-builder to 1.3.25
78
- avoid name clashing for libraries

0 commit comments

Comments
 (0)