Skip to content

Commit

Permalink
Merge pull request #64 from ggchivalrous/feat/v1.5
Browse files Browse the repository at this point in the history
fix: 修复误删输出图片
  • Loading branch information
ggchivalrous authored Mar 27, 2024
2 parents f93f1cc + cb4c369 commit c37ebd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electron/src/modules/image-tool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ export class ImageTool extends Event {

private delCacheFile() {
for (const k in this.outputFileNames) {
if (k === 'composite') continue;

const _path = (this.outputFileNames as any)[k];
if (fs.existsSync(_path)) {
tryCatch(() => fs.rmSync(_path));
Expand Down

0 comments on commit c37ebd1

Please sign in to comment.