We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 022d550 + 92d1c8e commit 2cfebc9Copy full SHA for 2cfebc9
app/src/processing/app/Preferences.java
@@ -744,9 +744,9 @@ static protected void save() {
744
// Fix for 0163 to properly use Unicode when writing preferences.txt
745
PrintWriter writer = PApplet.createWriter(preferencesFile);
746
747
- Enumeration e = table.keys(); //properties.propertyNames();
748
- while (e.hasMoreElements()) {
749
- String key = (String) e.nextElement();
+ String[] keys = (String[])table.keySet().toArray(new String[0]);
+ Arrays.sort(keys);
+ for (String key: keys) {
750
if (key.startsWith("runtime."))
751
continue;
752
writer.println(key + "=" + ((String) table.get(key)));
0 commit comments