[bugfix]: remove window clear cache handler in main for MacOS

This commit is contained in:
Kendall Garner 2024-02-18 17:05:45 -08:00
parent 9a43ea0e4a
commit 74075fc374
No known key found for this signature in database
GPG Key ID: 18D2767419676C87

View File

@ -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();