fix: macos related window management improvements

This commit is contained in:
4gray committed 2022-12-26 17:25:59 +01:00
1 parent 2ce60e0a20
commit b336680ec9
1 file changed
+2
+2
View File
@@ -148,6 +148,8 @@ try {
// dock icon is clicked and there are no other windows open.
if (win === null) {
win = createWindow();
const menu = new AppMenu(win);
Menu.setApplicationMenu(menu.getMenu());
api.setMainWindow(win);
}
});