fix about window

This commit is contained in:
Cutls 2019-04-04 01:09:57 +09:00
parent 32c56dcf6a
commit 8155baa07d
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,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,mainWindow,false))); Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang,mainWindow,false,dir)));
} }
//CSS //CSS
css.css(mainWindow); css.css(mainWindow);

View File

@ -1,5 +1,5 @@
// Create the Application's main menu // Create the Application's main menu
function templete(lang,mainWindow,packaged){ function templete(lang,mainWindow,packaged,dir){
const electron = require("electron"); const electron = require("electron");
const app = electron.app; const app = electron.app;
const BrowserWindow = electron.BrowserWindow; const BrowserWindow = electron.BrowserWindow;
@ -74,7 +74,7 @@ function templete(lang,mainWindow,packaged){
"transparent": false, // ウィンドウの背景を透過 "transparent": false, // ウィンドウの背景を透過
"frame": false, // 枠の無いウィンドウ "frame": false, // 枠の無いウィンドウ
"resizable": false }); "resizable": false });
window.loadURL('file://' + __dirname + '/about.html?ver='+ver); window.loadURL(dir + '/about.html?ver='+ver);
} }, } },
{ type: "separator" }, { type: "separator" },
{ label: dict.quit[lang], accelerator: "Command+Q", click: function() { app.quit(); }} { label: dict.quit[lang], accelerator: "Command+Q", click: function() { app.quit(); }}