minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-12-07 07:25:45 +03:00
parent 2a168d00a9
commit e74a1ae943

View File

@ -3925,20 +3925,23 @@ module.FileSystemWriter = ImageGridFeatures.Feature({
// monitor changes... // monitor changes...
handlers: [ handlers: [
// loaders: clear changes... // clear changes...
// XXX currently if no args are passed then nothing is // XXX currently if no args are passed then nothing is
// done here, this might change... // done here, this might change...
[[ ['loadIndex',
'loadIndex',
'saveIndex',
].join(' '),
function(_, path){ function(_, path){
// XXX currently if no args are passed then nothing is
// done here, this might change...
if(path){ if(path){
this.changes = false this.changes = false
} }
}], }],
['saveIndex',
function(_, path){
// NOTE: if saving to a different path than loaded do not
// drop the .changes flags...
if(path && path == this.base_path){
this.changes = false
}
}],
// everything changed... // everything changed...
[[ [[