Skip to content

Incorrect position in directory after photo delete

Hi, I've noticed a change in behaviour after upgrading Ristretto from 0.11.0 to 0.12.2 (with Ubuntu 22.04 upgrade).

  1. I'm on a photo I want to delete, let's say it's 16/28

  2. I delete the photo (by pressing "delete" key and confirming the dialog if needed).

  3. Next photo (originally 17/28) is shown (that's expected), but labeled incorrectly as 17/27 - it should be 16/27 now.

  4. I click right arrow key -> a photo 18/27 (originally 19/28) is shown, which means I just skipped one photo in my workflow (I would expect original 18/28 to show)

If in step 4. a left arrow key is clicked instead, the photo doesn't change - it's still original 17/28 but it is now correctly labeled as 16/27.

I think it shows that the internal position is shifted to the right after deleting a photo and inconsistent with a photo shown.

I use Ristretto for going through the photos with arrows, inspecting and removing trashy ones really fast, so this problem is disturbing and causing me to delete photos that I didn't want to delete because the program suddenly doesn't agree with my mind 😄

I'll be happy to provide any clarification or help needed. Thank you!