BUG: Image viewer can delete a different photo from the one selected
Los mantenedores suelen responder en 3 días
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
What happened?
Description
The image viewer can delete a different photo from the one selected. The delete dialog does not remember which photo it was opened for, so it deletes whichever photo is current when you confirm.
Steps to reproduce
- Add a folder with at least 3 photos.
- Open the first photo and click Slideshow.
- Click Delete.
- Wait until the photo behind the dialog changes.
- Click Delete in the dialog.
Second trigger: open the delete dialog without the slideshow, press the → arrow key, then confirm.
Expected behavior
The photo shown when Delete was clicked is removed.
Actual behavior
The photo the viewer has since moved to is removed. In my test the dialog was opened on photo A and photo B was deleted.
If "Delete from Computer" is checked, the same photo ID is sent for deletion from disk, so the wrong file would be permanently deleted. I tested with it unchecked.
Cause
In frontend/src/components/Media/MediaView.tsx, handleConfirmDelete reads currentImage at confirm time. The slideshow and keyboard navigation stay active while the dialog is open.
Suggested fix
- Store the image ID when the dialog opens and delete that ID.
- Pause the slideshow and ignore viewer shortcuts while the dialog is open.
- Add tests for both triggers.
Environment
macOS, dev branch at 751ff6ca. Reproduced in Chrome against the local backend (with a stand-in for the Tauri layer), and in a Jest test.
I would like to work on this if approved.
Screenshots
1. Delete dialog opened on photo A
2. Slideshow moves to photo B while the dialog is open
3. After confirming, photo B is deleted instead of A
Record
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 322
- Forks
- 793
- Merge medio
- 6 d 10 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/PictoPy
-
bug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AOSSIE-Org/PictoPy#1802 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesPosiblemente ocupada @swastiksharma45 la tomó hace 2 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1788 · 6 comentarios ·
Los mantenedores suelen responder en 3 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
AOSSIE-Org/PictoPy#1786 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Posiblemente ocupada @omkar-suryavanshi la tomó hace 3 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1780 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workPosiblemente ocupada @ManyaJain111 la tomó hace 2 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
AOSSIE-Org/PictoPy#1779 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
Todos los issues de AOSSIE-Org/PictoPy
Issues similares
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
trezor/trezor-user-env#421 ·
-
Support new version of pythonAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
tangentcode/tangentswarm#167 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día