From a32cb2c056f4058112b630fa73b9ea69973ea982 Mon Sep 17 00:00:00 2001 From: Yueyu Date: Tue, 10 Aug 2021 20:52:57 +0800 Subject: [PATCH] set storyStarted if script is changed --- src/editor/ui/ScriptsPane.js | 2 ++ 1 file changed, 2 insertions(+) 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'));