Skip to content

Commit

Permalink
🐛 Fix: notification freeze the main-process after uploading with clip…
Browse files Browse the repository at this point in the history
…board

ISSUES CLOSED: #824
  • Loading branch information
Molunerfinn committed Jan 16, 2022
1 parent 58f96db commit 3a50315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/apis/app/uploader/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const uploadClipboardFiles = async (): Promise<string> => {
body: img[0].imgUrl!,
icon: img[0].imgUrl
})
notification.show()
setTimeout(() => {
notification.show()
}, 100)
await GalleryDB.getInstance().insert(img[0])
// trayWindow just be created in mac/windows, not in linux
trayWindow?.webContents?.send('clipboardFiles', [])
Expand Down

0 comments on commit 3a50315

Please sign in to comment.