Allow to configure infinite scrolling
This commit is contained in:
parent
939e114080
commit
44d632258d
4 changed files with 51 additions and 32 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue