Skip to content

Commit

Permalink
🐛 Fix(gallery): can't copy gallery pics link
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #901
  • Loading branch information
Molunerfinn committed Jun 12, 2022
1 parent a79efbf commit 8d861be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/events/picgoCoreIPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IPasteStyle>('settings.pasteStyle') || IPasteStyle.MARKDOWN
const customLink = picgo.getConfig<string>('settings.customLink')
const txt = pasteTemplate(pasteStyle, item, customLink)
Expand Down

0 comments on commit 8d861be

Please sign in to comment.