diff --git a/src/editor/ScratchJr.js b/src/editor/ScratchJr.js index 4e62c5e..40e95be 100644 --- a/src/editor/ScratchJr.js +++ b/src/editor/ScratchJr.js @@ -374,7 +374,12 @@ export default class ScratchJr { Project.prepareToSave(currentProject, onDone); }); }, true); - } else if (ScratchJr.isEditable() && currentProject && !Project.error && changed) { + } else if (ScratchJr.isEditable() + && editmode != 'storyStarter' + && currentProject + && !Project.error + && changed + ) { Project.prepareToSave(currentProject, onDone); } else { if (onDone) { diff --git a/src/editor/ui/ScriptsPane.js b/src/editor/ui/ScriptsPane.js index 885cc5a..0c21f33 100644 --- a/src/editor/ui/ScriptsPane.js +++ b/src/editor/ui/ScriptsPane.js @@ -182,6 +182,8 @@ export default class ScriptsPane { var dx = localx(sc, el.left); var dy = localy(sc, el.top); ScriptsPane.blockDropped(sc, dx, dy); + // Start the story if scripts is changed. + ScratchJr.storyStart('ScriptsPane.changed'); break; case 'library': var thumb = Palette.getHittedThumb(el, gn('spritecc'));