diff --git a/main.js b/main.js index 1061111..10fcb92 100755 --- a/main.js +++ b/main.js @@ -33,6 +33,7 @@ function setIcon() { docker.ping((err, data) => { if (lastConnectionStatus === null && data === null) { down(); + mb.window.webContents.send('send', 'update'); } if (lastConnectionStatus === null && data == 'OK') { @@ -42,6 +43,7 @@ function setIcon() { if (lastConnectionStatus === 'OK' && data === null) { down(); + mb.window.webContents.send('send', 'update'); } }); } diff --git a/src/app.js b/src/app.js index 67245ef..fca7d4d 100644 --- a/src/app.js +++ b/src/app.js @@ -92,6 +92,10 @@ function update() { }); } + if (err) { + containerList = containerList + `