From 939dbbf94f6c5b1c62eeff8b77a9a29f1457f027 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 3 Sep 2017 20:44:39 -0600 Subject: [PATCH] Fix oops broken list position --- mods/file_area_list.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/file_area_list.js b/mods/file_area_list.js index c4f89c4a..076d2a98 100644 --- a/mods/file_area_list.js +++ b/mods/file_area_list.js @@ -75,6 +75,11 @@ exports.getModule = class FileAreaList extends MenuModule { this.filterCriteria = _.get(options, 'extraArgs.filterCriteria'); this.fileList = _.get(options, 'extraArgs.fileList'); + if(this.fileList) { + // we'll need to adjust position as well! + this.fileListPosition = 0; + } + this.dlQueue = new DownloadQueue(this.client); if(!this.filterCriteria) { @@ -351,8 +356,7 @@ exports.getModule = class FileAreaList extends MenuModule { async.series( [ function fetchEntryData(callback) { - if(self.fileList) { - self.fileListPosition = 0; + if(self.fileList) { return callback(null); } return self.loadFileIds(false, callback); // false=do not force