mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2a168d00a9
commit
e74a1ae943
@ -3925,20 +3925,23 @@ module.FileSystemWriter = ImageGridFeatures.Feature({
|
||||
|
||||
// monitor changes...
|
||||
handlers: [
|
||||
// loaders: clear changes...
|
||||
// clear changes...
|
||||
// XXX currently if no args are passed then nothing is
|
||||
// done here, this might change...
|
||||
[[
|
||||
'loadIndex',
|
||||
'saveIndex',
|
||||
].join(' '),
|
||||
['loadIndex',
|
||||
function(_, path){
|
||||
// XXX currently if no args are passed then nothing is
|
||||
// done here, this might change...
|
||||
if(path){
|
||||
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...
|
||||
[[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user