Skip to content

Commit 481b5a7

Browse files
Merge pull request #5 from mrkpatchaa/patch-1
Merge current settings with default
2 parents c01f19a + 0ace987 commit 481b5a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/settings-manager/settings-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class SettingsManager<SettingsSchema extends {} = any> {
3939
await this.saveSettings();
4040
}
4141
else if (currentSettings.status === STATUS.FILE_EXISTS) {
42-
this.settings = { ...currentSettings.settings };
42+
this.settings = { ...this.default, ...currentSettings.settings };
4343
}
4444

4545
return this.settings;
@@ -121,4 +121,4 @@ export class SettingsManager<SettingsSchema extends {} = any> {
121121

122122
return this.settings;
123123
}
124-
}
124+
}

0 commit comments

Comments
 (0)