Don't prefetch full images on infinite scroll drain
Infinite scroll only needs thumbnails (already fetched inline). Full image prefetch only triggers on post click and initial search.
This commit is contained in:
parent
0aa5d139d3
commit
83bec9d649
@ -909,11 +909,9 @@ class BooruApp(QMainWindow):
|
|||||||
if self._append_queue:
|
if self._append_queue:
|
||||||
QTimer.singleShot(50, self._drain_append_queue)
|
QTimer.singleShot(50, self._drain_append_queue)
|
||||||
else:
|
else:
|
||||||
# All done — unlock loading, evict, prefetch
|
# All done — unlock loading, evict
|
||||||
self._loading = False
|
self._loading = False
|
||||||
self._auto_evict_cache()
|
self._auto_evict_cache()
|
||||||
if self._db.get_setting("prefetch_mode") in ("Adjacent", "Full page"):
|
|
||||||
self._prefetch_adjacent(idx)
|
|
||||||
# Check if still at bottom or content doesn't fill viewport
|
# Check if still at bottom or content doesn't fill viewport
|
||||||
sb = self._grid.verticalScrollBar()
|
sb = self._grid.verticalScrollBar()
|
||||||
from .grid import THUMB_SIZE, THUMB_SPACING
|
from .grid import THUMB_SIZE, THUMB_SPACING
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user