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

Offen
#202 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
56/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
desktop

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
0
Forks
2
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/autoclicker

Alle Issues in TMHSDigital/autoclicker

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.