Fix newscan for files
This commit is contained in:
parent
8d5f1a8c5d
commit
a28c1a82d8
|
@ -72,10 +72,8 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
if(options.extraArgs) {
|
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
||||||
this.filterCriteria = options.extraArgs.filterCriteria;
|
this.fileList = _.get(options, 'extraArgs.fileList');
|
||||||
this.fileList = options.fileList;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.dlQueue = new DownloadQueue(this.client);
|
this.dlQueue = new DownloadQueue(this.client);
|
||||||
|
|
||||||
|
@ -354,6 +352,7 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
[
|
[
|
||||||
function fetchEntryData(callback) {
|
function fetchEntryData(callback) {
|
||||||
if(self.fileList) {
|
if(self.fileList) {
|
||||||
|
self.fileListPosition = 0;
|
||||||
return callback(null);
|
return callback(null);
|
||||||
}
|
}
|
||||||
return self.loadFileIds(false, callback); // false=do not force
|
return self.loadFileIds(false, callback); // false=do not force
|
||||||
|
|
Loading…
Reference in New Issue