From fc56d07ab28c4f8c9cc4a50fca09e28a4bf1bf97 Mon Sep 17 00:00:00 2001 From: Molunerfinn Date: Wed, 8 Aug 2018 14:43:49 +0800 Subject: [PATCH] Fixed: tray drag imgs --- src/main/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index ccacadc..f3c996f 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()