Skip to content

Commit 0049c30

Browse files
committed
Fix image deletion bug
1 parent 735710f commit 0049c30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/screenshot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = class {
4040
})
4141
}
4242

43-
upload (file, callback) {
43+
upload (file, callback, tray) {
4444
try {
4545
fs.statSync(file)
4646

@@ -71,7 +71,7 @@ module.exports = class {
7171

7272
serviceModule.upload(file, (result, error) => {
7373
if (!error) {
74-
if (this.options.getOption('deleteOnUpload')) {
74+
if (this.options.getOption('deleteOnUpload') && !tray) {
7575
fs.unlink(file, (error) => {
7676
if (error) {
7777
callback(null, error)

0 commit comments

Comments
 (0)