mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50: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...
|
// 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...
|
||||||
[[
|
[[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user