mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
883a5f2c29
commit
f7db0fc878
@ -2880,15 +2880,14 @@ var TaskActions = actions.Actions({
|
||||
return (this.__tasks =
|
||||
this.__tasks
|
||||
|| this.__task_manager__()) },
|
||||
// session tasks are stopped when the index is cleared...
|
||||
// XXX need to get running tasks by action name...
|
||||
// NOTE: session tasks are stopped when the index is cleared...
|
||||
// XXX do we need to cache this...
|
||||
// ...if yes then we'll need to also clear/update the cache
|
||||
// every time a task is run/stopped...
|
||||
get sessionTasks(){
|
||||
//return this.tasks.titled(...this.sessionTaskActions) },
|
||||
return this.cache('sessionTasks', function(data){
|
||||
return data
|
||||
|| this.tasks
|
||||
.filter(function(task){
|
||||
return task.__session_task__ }) }) },
|
||||
return this.tasks
|
||||
.filter(function(task){
|
||||
return task.__session_task__ }) },
|
||||
|
||||
|
||||
// Queue (task)...
|
||||
|
||||
@ -871,6 +871,12 @@ var SharpActions = actions.Actions({
|
||||
|
||||
|
||||
// XXX EXPERIMENTAL...
|
||||
// XXX might be a good idea to rename this to something like:
|
||||
// .buildIndex(options)
|
||||
// and specify whet to build/not build in options...
|
||||
// XXX should we also cache/load metadata here???
|
||||
// i.e. .cacheAllMetadata()
|
||||
// XXX do we need to think about running this while index is loading???
|
||||
makePreviewsAndSave: ['- Sharp|File/',
|
||||
function(){
|
||||
var link = this.link()
|
||||
@ -908,7 +914,6 @@ module.Sharp = core.ImageGridFeatures.Feature({
|
||||
'loadImages',
|
||||
'loadNewImages'],
|
||||
'cacheMetadata: "all"'],
|
||||
//*/
|
||||
|
||||
// set orientation if not defined...
|
||||
// NOTE: progress on this is not shown so as to avoid spamming
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user