fix watch-unlink-dir removeAllListeners

This commit is contained in:
Abhinav 2023-02-07 13:49:25 +05:30
parent c3b7442e29
commit 5c286610e4

View file

@ -94,7 +94,7 @@ export function registerWatcherFunctions(
) {
ipcRenderer.removeAllListeners('watch-add');
ipcRenderer.removeAllListeners('watch-change');
ipcRenderer.removeAllListeners('watch-unlink');
ipcRenderer.removeAllListeners('watch-unlink-dir');
ipcRenderer.on('watch-add', async (_, filePath: string) => {
filePath = filePath.split(path.sep).join(path.posix.sep);