From 3bb76d7121ba4f470b7cf968cfdffe9e7bb544dd Mon Sep 17 00:00:00 2001 From: Mark Washeim Date: Fri, 23 Dec 2022 17:39:35 +0100 Subject: [PATCH] Update Worker.js How in the world! I thought I checked this yesterday! In any case, the append should not be limited this way. Breaks search. --- qml/lib/Worker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/lib/Worker.js b/qml/lib/Worker.js index fd965fd..c4df622 100644 --- a/qml/lib/Worker.js +++ b/qml/lib/Worker.js @@ -162,7 +162,8 @@ function addDataToModel (model, mode, items) { console.log("Fetched > " +length + " in " + mode) var i if (mode === "append") { - + model.append(items) + /* for(i = 0; i <= length-1; i++) { if ( knownIds.indexOf( items[i]["id"]) === -1) { if ( items[i]["id"] < max_id ) { @@ -172,6 +173,7 @@ function addDataToModel (model, mode, items) { } } } + */ } else if (mode === "prepend") { for(i = length-1; i >= 0 ; i--) { if ( knownIds.indexOf( items[i]["id"]) === -1) {