From bf9df2114dd1812fa537fac37e0eec3db053b3c9 Mon Sep 17 00:00:00 2001 From: dj2ls Date: Fri, 11 Mar 2022 12:52:05 +0100 Subject: [PATCH] small gui fixes --- gui/main.js | 7 +++++-- gui/package.json | 2 +- gui/src/index.html | 21 +++++++++++++++------ 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/gui/main.js b/gui/main.js index 7fa8ce5f..a4370892 100644 --- a/gui/main.js +++ b/gui/main.js @@ -330,8 +330,11 @@ app.whenReady().then(() => { let arg = { entry: `${data}` }; - logViewer.webContents.send('action-update-log', arg); - + // send info to log only if log screen available + // it seems an error occurs when updating + if (logViewer !== null && logViewer !== ''){ + logViewer.webContents.send('action-update-log', arg); + } }); diff --git a/gui/package.json b/gui/package.json index 2d5e7144..a6750994 100644 --- a/gui/package.json +++ b/gui/package.json @@ -1,6 +1,6 @@ { "name": "FreeDATA", - "version": "0.0.1-alpha.25", + "version": "0.1.0-alpha.1", "description": "FreeDATA ", "main": "main.js", "scripts": { diff --git a/gui/src/index.html b/gui/src/index.html index 64ca2cd4..45594ddf 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -697,9 +697,9 @@ - - + + + + + + + + +