mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-06 07:56:56 +08:00
🐛 Fix: notification freeze the main-process after uploading with clipboard
ISSUES CLOSED: #824
This commit is contained in:
@@ -23,7 +23,9 @@ export const uploadClipboardFiles = async (): Promise<string> => {
|
|||||||
body: img[0].imgUrl!,
|
body: img[0].imgUrl!,
|
||||||
icon: img[0].imgUrl
|
icon: img[0].imgUrl
|
||||||
})
|
})
|
||||||
notification.show()
|
setTimeout(() => {
|
||||||
|
notification.show()
|
||||||
|
}, 100)
|
||||||
await GalleryDB.getInstance().insert(img[0])
|
await GalleryDB.getInstance().insert(img[0])
|
||||||
// trayWindow just be created in mac/windows, not in linux
|
// trayWindow just be created in mac/windows, not in linux
|
||||||
trayWindow?.webContents?.send('clipboardFiles', [])
|
trayWindow?.webContents?.send('clipboardFiles', [])
|
||||||
|
|||||||
Reference in New Issue
Block a user