mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-02 22:31:49 +08:00
⚡ Perf: stop clipboard listening when app quit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user