mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-17 17:01:12 -05:00
only save the sample project if it's changed
This commit is contained in:
parent
5c0d80f048
commit
5ae6b2b7d1
1 changed files with 2 additions and 1 deletions
|
@ -352,7 +352,8 @@ export default class ScratchJr {
|
|||
}
|
||||
|
||||
static saveProject (e, onDone) {
|
||||
if (ScratchJr.isEditable() && editmode == 'storyStarter' && storyStarted && !Project.error) {
|
||||
// Only save the sample project if it's changed.
|
||||
if (ScratchJr.isEditable() && editmode == 'storyStarter' && storyStarted && !Project.error && changed) {
|
||||
OS.analyticsEvent('samples', 'story_starter_edited', Project.metadata.name);
|
||||
// Localize sample project names
|
||||
var sampleName = Localization.localizeSampleName(Project.metadata.name);
|
||||
|
|
Loading…
Reference in a new issue