Skip to content

Commit

Permalink
MainPage: clean code.
Browse files Browse the repository at this point in the history
  • Loading branch information
walokra committed Oct 24, 2015
1 parent 4606e54 commit a830407
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions qml/pages/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,21 @@ Page {
onMovementEnded: {
if (atYBeginning) {
actionBar.shown = true;

// if (page > 0) {
// page -= 1;
// console.log("atYBeginning: " + page);
// statusLabel.text = qsTr("Loading previous page");
// galleryModel.prevPage(galleryModel.query);
// galgrid.scrollToBottom();
// }
}

if(atYEnd) {
page += 1;
//console.log("atYEnd: " + page);
// console.log("atYEnd: " + page);
statusLabel.text = qsTr("Loading next page");
galleryModel.nextPage(galleryModel.query, true);
galleryModel.nextPage(galleryModel.query);
}
}

Expand Down

0 comments on commit a830407

Please sign in to comment.