From a058659778f51df711bb298f1f34a4d3bd64b6c3 Mon Sep 17 00:00:00 2001 From: Cutls Date: Sat, 16 Mar 2019 03:10:46 +0900 Subject: [PATCH] Fix reload --- app/language.js | 2 +- app/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/language.js b/app/language.js index 060a196e..4ed5df0d 100644 --- a/app/language.js +++ b/app/language.js @@ -1,5 +1,5 @@ // Create the Application's main menu -function templete(lang){ +function templete(lang,mainWindow){ const electron = require("electron"); const app = electron.app; const BrowserWindow = electron.BrowserWindow; diff --git a/app/main.js b/app/main.js index fa9d3a5d..27190d29 100644 --- a/app/main.js +++ b/app/main.js @@ -137,7 +137,7 @@ function createWindow() { var platform=process.platform; var bit=process.arch; if(platform=="darwin"){ - Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang))); + Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang,mainWindow))); } } // Electronの初期化完了後に実行