diff --git a/ui/TODO.otl b/ui/TODO.otl index 81cb1858..6a5fc979 100755 --- a/ui/TODO.otl +++ b/ui/TODO.otl @@ -109,7 +109,11 @@ Roadmap [_] 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... | an image get's repainted black and only then the new preview | is loaded, this is barely noticeable for one image but slows diff --git a/ui/compatibility.js b/ui/compatibility.js index 78ea572c..e15fba19 100755 --- a/ui/compatibility.js +++ b/ui/compatibility.js @@ -388,6 +388,7 @@ if(window.CEF_dumpJSON != null){ gids = gids == null ? getClosestGIDs() : gids var queue = getWorkerQueue('Generate previews', 4) + .filling() // attach the workers to the queue... $.each(gids, function(_, gid){ @@ -397,7 +398,7 @@ if(window.CEF_dumpJSON != null){ .always(function(){ console.log(gid, 'done') }) }) - return queue + return queue.doneFilling() } // format: "20130102-122315" diff --git a/ui/files.js b/ui/files.js index e687ff78..9002458c 100755 --- a/ui/files.js +++ b/ui/files.js @@ -1129,8 +1129,7 @@ function readImagesOrientationQ(gids, no_update_loaded){ last = queue.enqueue(readImageOrientation, gid, no_update_loaded) }) - queue.doneFilling() - return queue + return queue.doneFilling() } @@ -1160,8 +1159,7 @@ function readImagesDatesQ(images){ queue.enqueue(readImageDate, gid, images) }) - queue.doneFilling() - return queue + return queue.doneFilling() } @@ -1235,10 +1233,9 @@ function updateImagesGIDsQ(images, data){ queue.enqueue(updateImageGID, key, images, data) }) - queue.doneFilling() IMAGES_CREATED = true - return queue + return queue.doneFilling() }