Fixed an issue where first install could fail.

This commit is contained in:
Quentin Decaunes 2019-06-03 16:14:04 +02:00
parent 74b7dbd083
commit 2649598fa1
3 changed files with 3 additions and 3 deletions

View File

@ -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');
/**

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "ryzencontroller",
"version": "1.12.2",
"version": "1.12.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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