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": {