Commit 4686c128 authored by Meg Ford's avatar Meg Ford

listview.js, fileUtil.js: return info about 20 files instead of ten since we...

listview.js, fileUtil.js: return info about 20 files instead of ten since we can make the window larger and can fit more files.
parent 2168c8db
......@@ -34,7 +34,7 @@ const Listview = imports.listview;
const MainWindow = imports.mainWindow;
const Record = imports.record;
const _OFFSET_STEP = 10;
const _OFFSET_STEP = 20;
let CurrentEndIdx;
const OffsetController = new Lang.Class({
......@@ -54,7 +54,7 @@ const OffsetController = new Lang.Class({
getEndIdx: function() {
this.totItems = MainWindow.list.getItemCount();
if (CurrentEndIdx < this.totItems) {
this.endIdx = CurrentEndIdx;
this.endIdx = CurrentEndIdx -1;
} else {
this.endIdx = this.totItems - 1;
}
......
......@@ -112,7 +112,7 @@ const Listview = new Lang.Class({
_onNextFileComplete: function () {
fileInfo = [];
try{
this._enumerator.next_files_async(10, GLib.PRIORITY_DEFAULT, null, Lang.bind(this,
this._enumerator.next_files_async(20, GLib.PRIORITY_DEFAULT, null, Lang.bind(this,
function(obj, res) {
let files = obj.next_files_finish(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment