From 74075fc374bf3ef2918b54e554f7faf54e5580dc Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Sun, 18 Feb 2024 17:05:45 -0800 Subject: [PATCH] [bugfix]: remove window clear cache handler in main for MacOS --- src/main/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/main.ts b/src/main/main.ts index 848fc3a8..d87aaf36 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -363,6 +363,7 @@ const createWindow = async () => { }); mainWindow.on('closed', () => { + ipcMain.removeHandler('window-clear-cache'); mainWindow = null; }); @@ -552,6 +553,7 @@ app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed if (isMacOS()) { + ipcMain.removeHandler('window-clear-cache'); mainWindow = null; } else { app.quit();