From 8d861be161774de4e8a6f8eced21cbe37f8eaf4f Mon Sep 17 00:00:00 2001 From: PiEgg Date: Sun, 12 Jun 2022 12:30:28 +0800 Subject: [PATCH] :bug: Fix(gallery): can't copy gallery pics link ISSUES CLOSED: #901 --- src/main/events/picgoCoreIPC.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/events/picgoCoreIPC.ts b/src/main/events/picgoCoreIPC.ts index b6e49137..85888b90 100644 --- a/src/main/events/picgoCoreIPC.ts +++ b/src/main/events/picgoCoreIPC.ts @@ -321,7 +321,7 @@ const handlePicGoGalleryDB = () => { event.sender.send(PICGO_REMOVE_BY_ID_DB, res, callbackId) }) - ipcMain.handle(PASTE_TEXT, async (item: ImgInfo, copy = true) => { + ipcMain.handle(PASTE_TEXT, async (_, item: ImgInfo, copy = true) => { const pasteStyle = picgo.getConfig('settings.pasteStyle') || IPasteStyle.MARKDOWN const customLink = picgo.getConfig('settings.customLink') const txt = pasteTemplate(pasteStyle, item, customLink)