summaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
authorLawnCable <lawncable.tmw2@simonlaux.de>2018-05-22 18:22:02 -0400
committerLawnCable <lawncable.tmw2@simonlaux.de>2018-05-22 18:22:02 -0400
commit2e97e2f4265ab946be252c1a1090b168d114db7f (patch)
tree22a91bff8c250d16d45d6a64abddc6d2df07271c /src/main.ts
parent6537f4538509f190a39c7188684ca454209dd710 (diff)
downloadelectron-2e97e2f4265ab946be252c1a1090b168d114db7f.tar.gz
electron-2e97e2f4265ab946be252c1a1090b168d114db7f.tar.bz2
electron-2e97e2f4265ab946be252c1a1090b168d114db7f.tar.xz
electron-2e97e2f4265ab946be252c1a1090b168d114db7f.zip
Test Download and running is working now for windows - but it is not done yet
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts6
1 files changed, 2 insertions, 4 deletions
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;
});