diff --git a/src/main/index.js b/src/main/index.js index ccacadc3..f3c996f3 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -163,6 +163,9 @@ function createTray () { notification.show() }, i * 100) } + imgs.forEach(item => { + db.read().get('uploaded').insert(item).write() + }) window.webContents.send('dragFiles', imgs) } else { uploadFailed()