Trigger prefetch on infinite scroll append

This commit is contained in:
pax 2026-04-05 14:05:29 -05:00
parent ac2c15be29
commit adef0fc86c

View File

@ -840,6 +840,10 @@ class BooruApp(QMainWindow):
if post.preview_url:
self._fetch_thumbnail(start + i, post.preview_url)
# Prefetch new posts
if self._db.get_setting_bool("prefetch_adjacent") and posts:
self._prefetch_adjacent(start)
def _fetch_thumbnail(self, index: int, url: str) -> None:
async def _download():
try: