don't show crash log when exit cleanly

This commit is contained in:
liamcottle
2024-08-16 21:31:41 +12:00
parent 79d0585a21
commit 5c49e78204

View File

@@ -167,6 +167,11 @@ app.whenReady().then(async () => {
// quit electron app if exe dies
exeChildProcess.on('exit', async function(code) {
// if no exit code provided, we wanted exit to happen, so do nothing
if(code == null){
return;
}
// show crash log
const stdout = stdoutLines.join("");
const stderr = stderrLines.join("");