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

未关闭
#202 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
56/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
desktop

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Python
星标
0
派生
2
平均合并
2 天 13 小时
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/autoclicker 的其他 Issue

查看 TMHSDigital/autoclicker 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。