fix(in-app-menu): panel should close with the window when it is closed

- fix #1389
This commit is contained in:
JellyBrick
2023-11-09 10:27:07 +09:00
parent 55ae9eac1e
commit 9f88b37f41
3 changed files with 15 additions and 5 deletions

View File

@ -39,7 +39,7 @@ const pluginEnabledMenu = (plugin: string, label = '', hasSubmenu = false, refre
export const refreshMenu = (win: BrowserWindow) => {
setApplicationMenu(win);
if (inAppMenuActive) {
win.webContents.send('refreshMenu');
win.webContents.send('refresh-in-app-menu');
}
};