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