several minor bugs squashed + updated todo...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-22 08:06:30 +04:00
parent 98ebfa64c2
commit 1eb23a65e1
3 changed files with 10 additions and 8 deletions

View File

@ -109,7 +109,11 @@ Roadmap
[_] 32% Gen 3 current todo [_] 32% Gen 3 current todo
[_] 65% High priority [_] 64% High priority
[_] BUG: preview generation progress reporting is broken...
| - the progress bar is generated
| - the previews are created
| - no progress is reported
[_] BUG: chrome 32 / nw 0.9.1: flicker on preview swap... [_] BUG: chrome 32 / nw 0.9.1: flicker on preview swap...
| an image get's repainted black and only then the new preview | an image get's repainted black and only then the new preview
| is loaded, this is barely noticeable for one image but slows | is loaded, this is barely noticeable for one image but slows

View File

@ -388,6 +388,7 @@ if(window.CEF_dumpJSON != null){
gids = gids == null ? getClosestGIDs() : gids gids = gids == null ? getClosestGIDs() : gids
var queue = getWorkerQueue('Generate previews', 4) var queue = getWorkerQueue('Generate previews', 4)
.filling()
// attach the workers to the queue... // attach the workers to the queue...
$.each(gids, function(_, gid){ $.each(gids, function(_, gid){
@ -397,7 +398,7 @@ if(window.CEF_dumpJSON != null){
.always(function(){ console.log(gid, 'done') }) .always(function(){ console.log(gid, 'done') })
}) })
return queue return queue.doneFilling()
} }
// format: "20130102-122315" // format: "20130102-122315"

View File

@ -1129,8 +1129,7 @@ function readImagesOrientationQ(gids, no_update_loaded){
last = queue.enqueue(readImageOrientation, gid, no_update_loaded) last = queue.enqueue(readImageOrientation, gid, no_update_loaded)
}) })
queue.doneFilling() return queue.doneFilling()
return queue
} }
@ -1160,8 +1159,7 @@ function readImagesDatesQ(images){
queue.enqueue(readImageDate, gid, images) queue.enqueue(readImageDate, gid, images)
}) })
queue.doneFilling() return queue.doneFilling()
return queue
} }
@ -1235,10 +1233,9 @@ function updateImagesGIDsQ(images, data){
queue.enqueue(updateImageGID, key, images, data) queue.enqueue(updateImageGID, key, images, data)
}) })
queue.doneFilling()
IMAGES_CREATED = true IMAGES_CREATED = true
return queue return queue.doneFilling()
} }