mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
⚡ Perf: stop clipboard listening when app quit
This commit is contained in:
parent
bfa41be2ec
commit
993d2ac4de
@ -269,6 +269,8 @@ class LifeCycle {
|
||||
globalShortcut.unregisterAll()
|
||||
bus.removeAllListeners()
|
||||
server.shutdown()
|
||||
const clipboardWatcher = process.platform === 'darwin' ? clipboardPoll : clipboardListener
|
||||
clipboardWatcher.stopListening()
|
||||
})
|
||||
// Exit cleanly on request from parent process in development mode.
|
||||
if (isDevelopment) {
|
||||
|
Loading…
Reference in New Issue
Block a user