summaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
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;
});