Skip to content

Commit

Permalink
fix: stop using infinite scroll when disabled (fix #2987)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jun 22, 2023
1 parent ac2f8a5 commit 820771e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui-qml/src/components/GalleryScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Page {
onOpenImage: mainStackView.push(imageScreen, { index: index })
onRefresh: galleryLoader.load()
onAppendNext: {
if (galleryLoader.hasNext) {
if (infiniteScroll && galleryLoader.hasNext) {
root.appendResults = true
root.page++
galleryLoader.load()
Expand Down
2 changes: 1 addition & 1 deletion src/gui-qml/src/components/SearchScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Page {
onOpenImage: mainStackView.push(imageScreen, { index: index })
onRefresh: load()
onAppendNext: {
if (pageLoader.hasNext) {
if (infiniteScroll && pageLoader.hasNext) {
searchTab.appendResults = true
searchTab.page++
searchTab.load()
Expand Down

0 comments on commit 820771e

Please sign in to comment.