Fix reload
This commit is contained in:
parent
da5549d1f0
commit
a058659778
|
@ -1,5 +1,5 @@
|
||||||
// Create the Application's main menu
|
// Create the Application's main menu
|
||||||
function templete(lang){
|
function templete(lang,mainWindow){
|
||||||
const electron = require("electron");
|
const electron = require("electron");
|
||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
const BrowserWindow = electron.BrowserWindow;
|
const BrowserWindow = electron.BrowserWindow;
|
||||||
|
|
|
@ -137,7 +137,7 @@ function createWindow() {
|
||||||
var platform=process.platform;
|
var platform=process.platform;
|
||||||
var bit=process.arch;
|
var bit=process.arch;
|
||||||
if(platform=="darwin"){
|
if(platform=="darwin"){
|
||||||
Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang)));
|
Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang,mainWindow)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Electronの初期化完了後に実行
|
// Electronの初期化完了後に実行
|
||||||
|
|
Loading…
Reference in New Issue
Block a user