mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 11:08:13 -05:00
Fixed: can not use shortcut when settingWindow is closed
This commit is contained in:
parent
1f373fb325
commit
937979ae3d
@ -309,7 +309,8 @@ const uploadClipboardFiles = async () => {
|
||||
imgUrl
|
||||
}
|
||||
}
|
||||
img = await uploader(uploadImg, 'imgFromClipboard', settingWindow.webContents)
|
||||
const win = settingWindow || window
|
||||
img = await uploader(uploadImg, 'imgFromClipboard', win.webContents)
|
||||
if (img !== false) {
|
||||
if (img.length > 0) {
|
||||
const pasteStyle = db.read().get('picBed.pasteStyle').value() || 'markdown'
|
||||
|
Loading…
Reference in New Issue
Block a user