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()
|
globalShortcut.unregisterAll()
|
||||||
bus.removeAllListeners()
|
bus.removeAllListeners()
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
|
const clipboardWatcher = process.platform === 'darwin' ? clipboardPoll : clipboardListener
|
||||||
|
clipboardWatcher.stopListening()
|
||||||
})
|
})
|
||||||
// Exit cleanly on request from parent process in development mode.
|
// Exit cleanly on request from parent process in development mode.
|
||||||
if (isDevelopment) {
|
if (isDevelopment) {
|
||||||
|
Loading…
Reference in New Issue
Block a user