save preferences when clicking OK (fixes #608)

This commit is contained in:
Ben Fry
2023-01-20 10:57:51 -05:00
parent 40611e6f84
commit 19e5ffd20d
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -220,8 +220,8 @@ public class Preferences {
static public void save() {
// On startup it'll be null, don't worry about it. It's trying to update
// the prefs for the open sketch before Preferences.init() has been called.
// On startup, this is null, but ignore it. It's trying to update the
// prefs for the open sketch before Preferences.init() has been called.
if (preferencesFile != null) {
try {
File dir = preferencesFile.getParentFile();
@@ -830,6 +830,9 @@ public class PreferencesFrame {
for (Editor editor : base.getEditors()) {
editor.applyPreferences();
}
// https://github.com/processing/processing4/issues/608
Preferences.save();
}
+2 -1
View File
@@ -1,5 +1,6 @@
1291 (4.1.3 or 4.2)
X preferences.txt is not saved when closing Processing under certain circumstances
X https://github.com/processing/processing4/issues/608
manager
X add 'exports' to the library parameters