Fix reload

This commit is contained in:
Cutls 2019-03-16 03:10:46 +09:00
parent da5549d1f0
commit a058659778
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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の初期化完了後に実行