Skip to content

Commit

Permalink
fixed modifier for racores variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Jun 23, 2020
1 parent 7084495 commit 260c76d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/modifiers/app-settings.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let versionUp = (version: number) => { return version + 1 };

export const appSettings: ValidatorModifier<AppSettings> = {
controlProperty: 'version',
latestVersion: 0,
latestVersion: 1,
fields: {
undefined: {
'version': { method: () => 0 },
Expand All @@ -25,12 +25,12 @@ export const appSettings: ValidatorModifier<AppSettings> = {
}
}
},
'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;
}
Expand Down

0 comments on commit 260c76d

Please sign in to comment.