Commit 2ac57d7c authored by Meg Ford's avatar Meg Ford

listview.js, mainWindow.js: code cleanup

parent d7d4b41f
......@@ -281,7 +281,7 @@ const Listview = new Lang.Class({
allFilesInfo.length = 0;
fileInfo.length = 0;
log(stopVal + "this._stopVal");
this.setListTypeRefresh();
listType = ListType.REFRESH;
log("this.listType" + listType);
log("this.currentlyEnumerating " + currentlyEnumerating);
......
......@@ -509,7 +509,9 @@ const MainView = new Lang.Class({
},
listBoxRefresh: function() {
loadMoreButton.destroy();
previousSelRow = null;
loadMoreButton = null;
this.listBox.set_selection_mode(Gtk.SelectionMode.NONE);
list.enumerateDirectory();
//this.listBox.set_selection_mode(Gtk.SelectionMode.SINGLE);
......@@ -757,8 +759,8 @@ const LoadMoreButton = new Lang.Class({
onLoadMore: function() {
//offsetController.increaseOffset();
UpperBoundVal += 182;
view.scrollbar.set_upper(UpperBoundVal);
//UpperBoundVal += 182;
//view.scrollbar.set_upper(UpperBoundVal);
view.listBoxLoadMore();
}
});
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