From b9f2155ded1a098e9c421c05d592f2192fdeb333 Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 17 Apr 2017 14:58:08 +0900 Subject: [PATCH] show window menu also on Windows --- main/app.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/app.ts b/main/app.ts index 175924c..7cd86fd 100644 --- a/main/app.ts +++ b/main/app.ts @@ -21,6 +21,11 @@ export class App { } open() { + if (!IS_DARWIN) { + // Users can still access menu bar with pressing Alt key. + this.winsetMenu(Menu.getApplicationMenu()); + } + this.win.webContents.on('dom-ready', () => { this.win.show(); });