mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-02 18:49:41 +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!,
|
||||
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', [])
|
||||
|
||||
Reference in New Issue
Block a user