bugfix of output not always being shown

This commit is contained in:
2023-06-10 08:25:00 +02:00
parent c01948dc3f
commit 9795034d74
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class UpscalingHandler {
child.stderr.on( 'data', ( data ) => { child.stderr.on( 'data', ( data ) => {
console.error(`stderr: ${ data }`); console.error(`stderr: ${ data }`);
win.send( 'progress', '\n' + data );
} ); } );
child.on( 'error', ( error ) => { child.on( 'error', ( error ) => {

View File

@@ -156,7 +156,7 @@ export default {
let self = this; let self = this;
ipcRenderer.on( 'progress', function ( evt, message ) { ipcRenderer.on( 'progress', function ( evt, message ) {
self.output += message; self.output = message + self.output;
}); });
ipcRenderer.on( 'finish', function ( evt, message ) { ipcRenderer.on( 'finish', function ( evt, message ) {