Skip to content
Snippets Groups Projects
Commit f6d419ae authored by Ray Schamp's avatar Ray Schamp
Browse files

Keep projects unchanged after loading

parent 09592425
No related branches found
No related tags found
Loading
......@@ -54,7 +54,9 @@ const vmManagerHOC = function (WrappedComponent) {
return this.props.vm.loadProject(this.props.projectData)
.then(() => {
this.props.onLoadedProject(this.props.loadingState, this.props.canSave);
this.props.onSetProjectUnchanged();
// Wrap in a setTimeout because skin loading in
// the renderer can be async.
setTimeout(() => this.props.onSetProjectUnchanged());
// If the vm is not running, call draw on the renderer manually
// This draws the state of the loaded project with no blocks running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment