Skip to content

image_view: Fix carousel scrolling when loading files in same dir

Christopher Davis requested to merge wip/cdavis/carousel-fixups into main

With libadwaita!652 (merged) merged we no longer crash when loading files from the same directory. Now that we don't crash, we've exposed a logic error: we were changing the state of the carousel while scrolling through it, which ends with the carousel in a weird state.

This commit delays clearing and refilling the carousel until after the page-changed signal is emitted.

Merge request reports

Loading