mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-16 13:58:13 +00:00
Disable server startup on running electron
This commit is contained in:
5
main.js
5
main.js
@ -47,7 +47,6 @@ const createServerProc = () => {
|
|||||||
else {
|
else {
|
||||||
serverPath = path.join(__dirname, 'dist', filename, 'gns3server');
|
serverPath = path.join(__dirname, 'dist', filename, 'gns3server');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -109,8 +108,8 @@ function createWindow () {
|
|||||||
// Some APIs can only be used after this event occurs.
|
// Some APIs can only be used after this event occurs.
|
||||||
app.on('ready', createWindow);
|
app.on('ready', createWindow);
|
||||||
|
|
||||||
app.on('ready', createServerProc);
|
// app.on('ready', createServerProc);
|
||||||
app.on('will-quit', exitServerProc);
|
// app.on('will-quit', exitServerProc);
|
||||||
|
|
||||||
// Quit when all windows are closed.
|
// Quit when all windows are closed.
|
||||||
app.on('window-all-closed', function () {
|
app.on('window-all-closed', function () {
|
||||||
|
Reference in New Issue
Block a user