options: make sure nonLauncher options are kept in store and not save in config files
This commit is contained in:
parent
295ca34416
commit
2b529bc19d
2 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class Settings {
|
|||
write(tmp) {
|
||||
|
||||
for (var i in this.options) {
|
||||
if (this.options[i] === '') {
|
||||
if (this.options[i] === '' || !this.names.includes(i)) {
|
||||
delete this.options[i]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,6 +124,9 @@ if (configPathExists) {
|
|||
}
|
||||
} else {
|
||||
for (let k in config) {
|
||||
if (k === 'options') {
|
||||
Object.assign(config.options, settings.options)
|
||||
}
|
||||
settings[k] = config[k]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue