Merge pull request #16809 from atom/mb-fix-color-config

Serialize settings as JSON when sending them to the main process
This commit is contained in:
Max Brunsfeld
2018-02-21 10:39:07 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ class ApplicationDelegate {
async setUserSettings (config) {
this.pendingSettingsUpdateCount++
try {
await ipcHelpers.call('set-user-settings', config)
await ipcHelpers.call('set-user-settings', JSON.stringify(config))
} finally {
this.pendingSettingsUpdateCount--
}

View File

@@ -559,7 +559,7 @@ class AtomApplication extends EventEmitter {
}))
this.disposable.add(ipcHelpers.respondTo('set-user-settings', (window, settings) =>
this.configFile.update(settings)
this.configFile.update(JSON.parse(settings))
))
this.disposable.add(ipcHelpers.respondTo('center-window', window => window.center()))