Skip to content

Commit

Permalink
add extra Preferences.save() after chaning theme (fix for #565)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Nov 25, 2022
1 parent 926f1d1 commit a39f4d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/src/processing/app/tools/ThemeSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ private void setCurrentIndex(int index) {
// preference so that subsequent Processing updates load new theme changes.
//Util.saveFile(currentSet.get(index), sketchbookFile);
Preferences.set("theme", currentSet.getPath(index));
// On some machines, the theme wasn't getting saved; try an explicit save
// https://github.com/processing/processing4/issues/565
Preferences.save();
reloadTheme();
}

Expand Down
5 changes: 3 additions & 2 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
1288 (4.1?)
X bump Java version to 17.0.5
X theme is not being kept after Processing restart on Windows
X unable to reproduce so just hoping this works
X https://github.com/processing/processing4/issues/565


_ "Show Sketch Folder" for libraries needs to treat the sketch as Untitled
_ and with that, switch to another directory
_ https://github.com/processing/processing4/issues/548

_ theme is not being kept after Processing restart on Windows?
_ https://github.com/processing/processing4/issues/565

_ expanded language codes to support traditional Chinese translation
_ https://github.com/processing/processing4/issues/600
Expand Down

0 comments on commit a39f4d7

Please sign in to comment.