Fix oops broken list position
This commit is contained in:
parent
d74e95a198
commit
939dbbf94f
|
@ -75,6 +75,11 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
||||||
this.fileList = _.get(options, 'extraArgs.fileList');
|
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);
|
this.dlQueue = new DownloadQueue(this.client);
|
||||||
|
|
||||||
if(!this.filterCriteria) {
|
if(!this.filterCriteria) {
|
||||||
|
@ -352,7 +357,6 @@ 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