mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-22 08:47:06 +08:00
✨ Feature: add autoCopy option for users to use or not
This commit is contained in:
8
src/main/utils/common.ts
Normal file
8
src/main/utils/common.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import db from '#/datastore'
|
||||
import { clipboard } from 'electron'
|
||||
|
||||
export function handleCopyUrl (str: string): void {
|
||||
if (db.get('settings.autoCopy') === true) {
|
||||
clipboard.writeText(str)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user