From 2e97e2f4265ab946be252c1a1090b168d114db7f Mon Sep 17 00:00:00 2001 From: LawnCable Date: Tue, 22 May 2018 18:22:02 -0400 Subject: Test Download and running is working now for windows - but it is not done yet --- src/main.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts index b9662dc..cf5ff4b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,9 +27,6 @@ const createWindow = () => { // and load the index.html of the app. mainWindow.loadURL(`file://${__dirname}/../assets/index.html`); - // Open the DevTools. - mainWindow.webContents.openDevTools(); - // Emitted when the window is closed. mainWindow.on('closed', () => { // Dereference the window object, usually you would store windows @@ -94,9 +91,10 @@ import { ManaPlus } from './main/manaplus/manaplus'; ManaPlus.init(); ipcMain.on('play', async (event:any, arg:any) => { + if(Status.getStatus().playing)return; console.log("play", arg); Status.setPlaying(true); - await ManaPlus.start(arg.server,arg.port,arg.engine,arg.username,arg.password); + await ManaPlus.start(arg.address,arg.port,arg.engine,arg.username,arg.password); //Status.showError("Failed To Launch Mana Plus","Not implemented yet!","Launch Manaplus faild: Not Implemented"); return false; }); -- cgit v1.2.3-60-g2f50