diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index 716ca99..2fb0ad3 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -231,7 +231,15 @@ Rectangle { onAtYEndChanged: { - if (grid.atYEnd && danbooruModel.rowCount() > 0 && !rootObj.poolMode && infiniteScroll) { + // Download only if at end, if there are posts, if + // we are not displaying a pool, if the option is set + // and if we're not already downloading something + + if (grid.atYEnd && danbooruModel.rowCount() > 0 && + !rootObj.poolMode && + infiniteScroll && + !runningIndicator.running) { + rootObj.downloadStarted() danbooruService.nextPostPage(); }