From 2649598fa11de01b9b70698e325d3ae8f99ec1c7 Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Mon, 3 Jun 2019 16:14:04 +0200 Subject: [PATCH] Fixed an issue where first install could fail. --- main.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 05bab26..a563723 100644 --- a/main.js +++ b/main.js @@ -14,7 +14,7 @@ if (!setupEvents.handleSquirrelEvent()) { // Check for latest used version and clear settings if needed. const old_version = settings.get('settings.last_used_version'); const new_version = require('./package.json').version; - if (old_version !== new_version) { + if (old_version && old_version !== new_version) { var compareVersions = require('compare-versions'); /** diff --git a/package-lock.json b/package-lock.json index 9ebc805..4edca84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ryzencontroller", - "version": "1.12.2", + "version": "1.12.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index dc06713..590b957 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ryzencontroller", "productName": "RyzenController", - "version": "1.12.2", + "version": "1.12.3", "description": "A minimal Electron application to use ryzenAdj through a friendly interface.", "main": "main.js", "scripts": {