mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-30 20:50:52 +08:00
🐛 Fix: auto-copy option && copy style
auto-copy option not work && clear rules for line breaks when copying
This commit is contained in:
@@ -2,7 +2,7 @@ import db from '#/datastore'
|
||||
import { clipboard } from 'electron'
|
||||
|
||||
export function handleCopyUrl (str: string): void {
|
||||
if (db.get('settings.autoCopy') === true) {
|
||||
if (db.get('settings.autoCopy') !== false) {
|
||||
clipboard.writeText(str)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user