mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +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 =
|
return (this.__tasks =
|
||||||
this.__tasks
|
this.__tasks
|
||||||
|| this.__task_manager__()) },
|
|| this.__task_manager__()) },
|
||||||
// session tasks are stopped when the index is cleared...
|
// NOTE: session tasks are stopped when the index is cleared...
|
||||||
// XXX need to get running tasks by action name...
|
// 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(){
|
get sessionTasks(){
|
||||||
//return this.tasks.titled(...this.sessionTaskActions) },
|
return this.tasks
|
||||||
return this.cache('sessionTasks', function(data){
|
.filter(function(task){
|
||||||
return data
|
return task.__session_task__ }) },
|
||||||
|| this.tasks
|
|
||||||
.filter(function(task){
|
|
||||||
return task.__session_task__ }) }) },
|
|
||||||
|
|
||||||
|
|
||||||
// Queue (task)...
|
// Queue (task)...
|
||||||
|
|||||||
@ -871,6 +871,12 @@ var SharpActions = actions.Actions({
|
|||||||
|
|
||||||
|
|
||||||
// XXX EXPERIMENTAL...
|
// 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/',
|
makePreviewsAndSave: ['- Sharp|File/',
|
||||||
function(){
|
function(){
|
||||||
var link = this.link()
|
var link = this.link()
|
||||||
@ -908,7 +914,6 @@ module.Sharp = core.ImageGridFeatures.Feature({
|
|||||||
'loadImages',
|
'loadImages',
|
||||||
'loadNewImages'],
|
'loadNewImages'],
|
||||||
'cacheMetadata: "all"'],
|
'cacheMetadata: "all"'],
|
||||||
//*/
|
|
||||||
|
|
||||||
// set orientation if not defined...
|
// set orientation if not defined...
|
||||||
// NOTE: progress on this is not shown so as to avoid spamming
|
// NOTE: progress on this is not shown so as to avoid spamming
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user