Skip to content

Commit a72d15c

Browse files
committed
don't complain about preferences.old if preferences.txt did not exist already
1 parent 29a7893 commit a72d15c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/processing/app/Preferences.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ static public void save() {
233233
throw new IOException("Could not delete preferences.old");
234234
}
235235
}
236-
if (!preferencesFile.renameTo(oldPreferences)) {
236+
if (preferencesFile.exists() &&
237+
!preferencesFile.renameTo(oldPreferences)) {
237238
throw new IOException("Could not replace preferences.old");
238239
}
239-
240240
// Make the temporary file into the real preferences
241241
if (!preferencesTemp.renameTo(preferencesFile)) {
242242
throw new IOException("Could not move preferences file into place");

todo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0253 (3.2.1)
2-
_ “Could not replace preferences.old” error message
3-
_ https://github.com/processing/processing/issues/4626
2+
X “Could not replace preferences.old” error message
3+
X https://github.com/processing/processing/issues/4626
44
_ 3.2 not starting up on Windows 10 (64-bit)
55
_ https://github.com/processing/processing/issues/4623
66

0 commit comments

Comments
 (0)