🐛 Fix(custom): fix bug while using webp plugin

ISSUES CLOSED: #205
This commit is contained in:
Kuingsmile 2024-06-03 16:23:46 +08:00
parent f1a7a13eda
commit 30341d47a0
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ class Uploader {
return false return false
} finally { } finally {
if (filePath) { if (filePath) {
fse.unlink(filePath) fse.remove(filePath)
} }
} }
} }

View File

@ -223,7 +223,7 @@ class LifeCycle {
settingWindow.focus() settingWindow.focus()
} }
const clipboardDir = path.join(picgo.baseDir, CLIPBOARD_IMAGE_FOLDER) const clipboardDir = path.join(picgo.baseDir, CLIPBOARD_IMAGE_FOLDER)
fs.ensureDir(clipboardDir) fs.emptyDir(clipboardDir)
} }
app.whenReady().then(readyFunction) app.whenReady().then(readyFunction)
} }