Feature: add autoCopy option for users to use or not

This commit is contained in:
Molunerfinn
2020-03-19 21:03:21 +08:00
parent cd70a1a5cc
commit 67e526f163
10 changed files with 51 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import {
import db from '#/datastore'
import uploader from '../uploader'
import pasteTemplate from '#/utils/pasteTemplate'
import { handleCopyUrl } from '~/main/utils/common'
import {
getWindowId,
getSettingWindowId
@@ -79,7 +80,7 @@ class GuiApi implements IGuiApi {
}, i * 100)
db.insert('uploaded', imgs[i])
}
clipboard.writeText(pasteText)
handleCopyUrl(pasteText)
webContents.send('uploadFiles', imgs)
webContents.send('updateGallery')
return imgs