mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added preview list updating to menu...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3ee97573c0
commit
0ad024d8bb
@ -55,11 +55,11 @@ var setup = function(require, root){
|
|||||||
//'ext-lib/preact': './node_modules/preact/dist/preact.dev',
|
//'ext-lib/preact': './node_modules/preact/dist/preact.dev',
|
||||||
|
|
||||||
'lib/doc': 'node_modules/ig-doc/doc',
|
'lib/doc': 'node_modules/ig-doc/doc',
|
||||||
|
'lib/stoppable': 'node_modules/ig-stoppable/stoppable',
|
||||||
'lib/object': 'node_modules/ig-object/object',
|
'lib/object': 'node_modules/ig-object/object',
|
||||||
'lib/types': 'node_modules/ig-types/',
|
'lib/types': 'node_modules/ig-types/',
|
||||||
'lib/actions': 'node_modules/ig-actions/actions',
|
'lib/actions': 'node_modules/ig-actions/actions',
|
||||||
'lib/features': 'node_modules/ig-features/features',
|
'lib/features': 'node_modules/ig-features/features',
|
||||||
'lib/stoppable': 'node_modules/ig-stoppable/stoppable',
|
|
||||||
//'lib/keyboard': './node_modules/ig-keyboard/keyboard',
|
//'lib/keyboard': './node_modules/ig-keyboard/keyboard',
|
||||||
'object-run': 'node_modules/object-run/run',
|
'object-run': 'node_modules/object-run/run',
|
||||||
|
|
||||||
|
|||||||
@ -420,6 +420,7 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
// given path???
|
// given path???
|
||||||
getPreviews: ['- File/',
|
getPreviews: ['- File/',
|
||||||
function(pattern, path, images){
|
function(pattern, path, images){
|
||||||
|
var that = this
|
||||||
images = images || this.images
|
images = images || this.images
|
||||||
pattern = pattern == 'current' ? this.current + '*'
|
pattern = pattern == 'current' ? this.current + '*'
|
||||||
: pattern == 'all' ? '*'
|
: pattern == 'all' ? '*'
|
||||||
@ -451,16 +452,15 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
var rel = pathlib.relative(images[gid].base_path, base)
|
var rel = pathlib.relative(images[gid].base_path, base)
|
||||||
|
|
||||||
images[gid].path = pathlib.join(rel, images[gid].path)
|
images[gid].path = pathlib.join(rel, images[gid].path)
|
||||||
images[gid].base_path = base
|
images[gid].base_path = base }
|
||||||
}
|
|
||||||
|
|
||||||
images[gid].preview = p[gid].preview
|
images[gid].preview = p[gid].preview
|
||||||
}
|
// XXX should we check if things have changed???
|
||||||
})
|
that.markChanged('images', [gid]) } }) }
|
||||||
}
|
return images }) }],
|
||||||
return images
|
// XXX indicate progress???
|
||||||
})
|
getAllPreviews: ['File/Update image preview list',
|
||||||
}],
|
'getPreviews: "all"'],
|
||||||
|
|
||||||
// Get images in path...
|
// Get images in path...
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user