Skip to content

Commit

Permalink
FIX cache invalidation when changing json style
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Aug 29, 2024
1 parent 5d8cb7d commit 548ff52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/electron.renderer/ui/modal/panel/EditProject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ class EditProject extends ui.modal.Panel {
()->project.jsonStyle,
(v)->{
project.jsonStyle = v;
for(w in project.worlds)
for(l in w.levels)
editor.invalidateLevelCache(l);
},
(v)->switch v {
case Minified: L.t._("MINIFIED (minimal file size, no indentation)");
Expand Down

0 comments on commit 548ff52

Please sign in to comment.