diff --git a/ui (gen4)/features/core.js b/ui (gen4)/features/core.js index ffd2d0d9..ecaf7a6c 100755 --- a/ui (gen4)/features/core.js +++ b/ui (gen4)/features/core.js @@ -921,11 +921,7 @@ var ChangesActions = actions.Actions({ // all... if(args.length == 1 && args[0] == 'all'){ - // NOTE: this is better than delete as it will shadow - // the parent's changes in case we got cloned from - // a live instance... - //delete this.changes - this.changes = null + this.changes = true // none... } else if(args.length == 1 && args[0] == 'none'){ diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 72b23e5a..ab0fe48e 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -770,13 +770,18 @@ module.FileSystemLoader = core.ImageGridFeatures.Feature({ ['loadIndex', function(res, path){ if(path){ - //this.markChanged('none') var that = this - res.then(function(){ - that.markChanged('none') - }) + res.then(function(){ + that.markChanged('none') }) } }], + // mark everything changed when loading images... + ['loadImages', + function(res){ + var that = this + res.then(function(){ + that.markChanged('all') }) + }], // add new images to changes... ['loadNewImages', function(res){ @@ -786,8 +791,7 @@ module.FileSystemLoader = core.ImageGridFeatures.Feature({ && imgs.length > 0 && that .markChanged('data') - .markChanged(imgs.keys()) - }) + .markChanged(imgs.keys()) }) }], ], })