Skip to content

Commit

Permalink
Fixed the functionality of "New Project" in Planet (#445)
Browse files Browse the repository at this point in the history
* Fixed the functionality of "New Project" in Planet

* Load default blocks on New Project

Added the _loadStart function
  • Loading branch information
sdziuda authored and walterbender committed Dec 9, 2018
1 parent 95696ce commit 94f469d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,9 @@ define(MYDEFINES, function (compatibility) {

this.initialiseNewProject = function(name) {
this.planet.ProjectStorage.initialiseNewProject(name);
sendAllToTrash();
refreshCanvas();
_loadStart();
blocks.trashStacks = [];
this.saveLocally();
};
Expand Down

0 comments on commit 94f469d

Please sign in to comment.