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

Aberta
#202 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
56/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
0
Forks
2
Merge médio
2d 13h
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/autoclicker

Todas as issues de TMHSDigital/autoclicker

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.