diff --git a/main.js b/main.js index 131f38e..dd52515 100644 --- a/main.js +++ b/main.js @@ -57,7 +57,6 @@ function createWindow() { sendStatusToWindow('Checking for update...'); }) autoUpdater.on('update-available', (info) => { - updateAvailable = true sendStatusToWindow('Update available.'); }) autoUpdater.on('update-not-available', (info) => { @@ -73,6 +72,7 @@ function createWindow() { sendStatusToWindow(log_message); }) autoUpdater.on('update-downloaded', (info) => { + updateAvailable = true sendStatusToWindow('Update downloaded'); }); diff --git a/package.json b/package.json index 4ddd7f6..0844020 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crypto-bar", - "version": "1.1.10", + "version": "1.1.11", "main": "index.js", "title": "Crypto Bar", "description": "A menu bar application that updates cryptocurrencies prices in real-time",