Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求:编辑动作时,支持给动作加上析构函数(子程序),删除动作时自动执行 #2050

Open
Immortal-Sty opened this issue Dec 5, 2023 · 2 comments

Comments

@Immortal-Sty
Copy link

需求描述

写动作时,有时会对文件进行操作,有的动作因数据量过大,或其它原因,会把数据存在文件中,而非状态与变量中。

这种动作在删除时,会留下残留文件,有的文件难以找到或删除。

描述你想要的解决方案

希望能给动作加上用户自定义的析构函数(子程序),当动作被删除时自动运行,用于删除那些残留文件。

@cuiliang
Copy link
Owner

cuiliang commented Dec 6, 2023

qk程序里很难知道有哪些文件遗留,可以考虑在动作里做个右键菜单来做这个工作,然后在这里面使用“Quicker操作”-“删除当前动作”。
另外也可以考虑将文件放入temp目录里,让windows自动清理。

@Immortal-Sty
Copy link
Author

我知道,我的意思是让动作开发者自定义析构函数,qk 只负责在删除动作时自动调用。

比如指定一个特殊的子程序名,当动作开发者创建了这个子程序,删除动作时,就会自动调用这个子程序。

@cuiliang cuiliang added the v2 label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants