Skip to content

Commit

Permalink
Clear path list when opening a new project (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja authored Jan 6, 2025
1 parent 7933aec commit c3e40b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/document/DocumentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ export async function newProject() {
const newChor = await Commands.defaultProject();
doc.deserializeChor(newChor);
uiState.loadPathGradientFromLocalStorage();
doc.pathlist.deleteAll();
doc.pathlist.addPath("New Path");
doc.history.clear();
}
Expand Down

0 comments on commit c3e40b8

Please sign in to comment.