diff --git a/electron-app/src/index.ts b/electron-app/src/index.ts index 4dd8fb8..43f885c 100644 --- a/electron-app/src/index.ts +++ b/electron-app/src/index.ts @@ -42,8 +42,6 @@ const checkUpdates = async () => { const createWindow = async () => { await checkUpdates(); const icon = nativeImage.createFromPath(path.join(__dirname, '../public/logo_16x16.png')); - // kill any previous hanging process - await killPortProcess(8090); const server = await initFileSystemServer({ basePath }); tray = new Tray(icon); contextMenu = Menu.buildFromTemplate([ @@ -62,6 +60,12 @@ const createWindow = async () => { visible: false, icon: nativeImage.createFromPath(path.join(__dirname, '../public/square.png')), }, + { + label: 'Kill server', + click: async () => { + await killPortProcess(8090); + }, + }, { label: 'Exit', click: () => { diff --git a/package.json b/package.json index a0e5293..e2a16db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuclia-sync-agent-app", - "version": "1.5.6", + "version": "1.5.7", "description": "This is a Nuclia Sync Agent App", "main": "build/index.js", "scripts": {