mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-07 16:50:10 +08:00
🔨 Refactor: change linux clipboard watcher
This commit is contained in:
@@ -113,7 +113,7 @@ export function createMenu () {
|
||||
}
|
||||
|
||||
export function createContextMenu () {
|
||||
const ClipboardWatcher = process.platform === 'darwin' ? clipboardPoll : clipboardListener
|
||||
const ClipboardWatcher = process.platform === 'win32' ? clipboardListener : clipboardPoll
|
||||
const isListeningClipboard = db.get('settings.isListeningClipboard') || false
|
||||
if (process.platform === 'darwin' || process.platform === 'win32') {
|
||||
const submenu = buildPicBedListMenu()
|
||||
|
||||
Reference in New Issue
Block a user