mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
save preferences when clicking OK (fixes #608)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user