mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
[bugfix]: remove window clear cache handler in main for MacOS
This commit is contained in:
@@ -363,6 +363,7 @@ const createWindow = async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.on('closed', () => {
|
mainWindow.on('closed', () => {
|
||||||
|
ipcMain.removeHandler('window-clear-cache');
|
||||||
mainWindow = null;
|
mainWindow = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -552,6 +553,7 @@ app.on('window-all-closed', () => {
|
|||||||
// Respect the OSX convention of having the application in memory even
|
// Respect the OSX convention of having the application in memory even
|
||||||
// after all windows have been closed
|
// after all windows have been closed
|
||||||
if (isMacOS()) {
|
if (isMacOS()) {
|
||||||
|
ipcMain.removeHandler('window-clear-cache');
|
||||||
mainWindow = null;
|
mainWindow = null;
|
||||||
} else {
|
} else {
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|||||||
Reference in New Issue
Block a user