Unused wait-step captures are never deleted from the images folder

Aperta
#202 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
desktop

Direzione di ricerca

Start with _grab_step_image and recapture_step_image in autoclicker/gui/features/steps.py to see where step-*.png files are written, then compare with _forget_image in autoclicker/gui/features/image.py, which only handles target- captures. Find where the saved profiles and the current sequence are loaded so you can collect the referenced image paths. Done means a startup cleanup removes unreferenced step-*.png files and keeps those used by the sequence or any profile, which you can check by running against a throwaway APPDATA folder.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

maintenance priority: low

Summary

Wait-for-image steps save their capture as step-*.png in the images folder. Capturing a step's image again, removing the step, or importing the same profile repeatedly leaves the old files behind. Nothing deletes them, so the folder slowly fills with unused captures.

Where

  • autoclicker/gui/features/steps.py (_grab_step_image, recapture_step_image)
  • autoclicker/gui/features/image.py (_forget_image only handles target- captures)

Suggested fix

On startup (or after a profile change), delete step-*.png files that no saved sequence step and no profile references. Undo for Remove keeps steps in memory only for the session, so a cleanup at startup is safe.

Acceptance criteria

  • Unreferenced step-*.png files are removed; ones used by the current sequence or any profile are kept
  • Test with a throwaway APPDATA

Related: #119

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
2g 13h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TMHSDigital/autoclicker

Tutte le issue di TMHSDigital/autoclicker

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.