mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-22 15:04:47 +00:00
add variable to control kill behaviour
This commit is contained in:
@@ -101,7 +101,16 @@ app.on('ready', () => {
|
||||
|
||||
app.on('quit', async (event, exitCode) => {
|
||||
await server.close();
|
||||
apiProcess.kill();
|
||||
|
||||
var shouldKill = true;
|
||||
|
||||
if (manifestJsonFile.hasOwnProperty('killOnQuit')) {
|
||||
shouldKill = manifestJsonFile.killOnQuit;
|
||||
}
|
||||
|
||||
if (shouldKill) {
|
||||
apiProcess.kill();
|
||||
}
|
||||
});
|
||||
|
||||
function isSplashScreenEnabled() {
|
||||
@@ -141,7 +150,7 @@ function startSplashScreen() {
|
||||
if (manifestJsonFile.splashscreen.hasOwnProperty('timeout')) {
|
||||
var timeout = manifestJsonFile.splashscreen.timeout;
|
||||
setTimeout((t) => {
|
||||
if (splashScreen != null ) {
|
||||
if (splashScreen) {
|
||||
splashScreen.hide();
|
||||
}
|
||||
}, timeout);
|
||||
|
||||
Reference in New Issue
Block a user