From 260c76d0e3453a1bc5db4b0aa8a85ddc206c328c Mon Sep 17 00:00:00 2001 From: cbartondock Date: Tue, 23 Jun 2020 13:32:39 -0400 Subject: [PATCH] fixed modifier for racores variable --- src/renderer/modifiers/app-settings.modifier.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/modifiers/app-settings.modifier.ts b/src/renderer/modifiers/app-settings.modifier.ts index 69eeb366ba..d0c3af3300 100644 --- a/src/renderer/modifiers/app-settings.modifier.ts +++ b/src/renderer/modifiers/app-settings.modifier.ts @@ -5,7 +5,7 @@ let versionUp = (version: number) => { return version + 1 }; export const appSettings: ValidatorModifier = { controlProperty: 'version', - latestVersion: 0, + latestVersion: 1, fields: { undefined: { 'version': { method: () => 0 }, @@ -25,12 +25,12 @@ export const appSettings: ValidatorModifier = { } } }, - '0': { - 'version': {method: versionUp }, - 'environmentVariables': { method: (oldValue)=>{ + 0: { + 'version': { method: versionUp }, + 'environmentVariables': { method: (oldValue) => { let defaultValue = {retroarchPath:'',raCoresDirectory:'',steamDirectoryGlobal:'',localImagesDirectory:''} if(oldValue){ - return Object.assign(oldValue,{raCoresDirectory: ''}); + return Object.assign(oldValue, {raCoresDirectory: ''}); } return defaultValue; }