Allow to configure infinite scrolling

This commit is contained in:
Luca Beltrame 2015-02-21 11:33:08 +01:00
parent 939e114080
commit 44d632258d
4 changed files with 51 additions and 32 deletions

View file

@ -34,7 +34,6 @@ Rectangle {
property bool poolMode: false;
KRun {
id: runner
}
@ -205,8 +204,9 @@ Rectangle {
Component.onCompleted: { currentIndex = -1; forceActiveFocus()}
onAtYEndChanged: {
if (grid.atYEnd && danbooruModel.rowCount > 0 && !rootObj.poolMode) {
danbooruService.nextPostPage()
if (grid.atYEnd && danbooruModel.rowCount() > 0 && !rootObj.poolMode && infiniteScroll) {
danbooruService.nextPostPage();
}
}