mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Merge pull request #488 from yueyuzhao/issue/484-pbs-save-story
PBS: Fix story-save
This commit is contained in:
commit
ad285235a5
2 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue