mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Serialize settings as JSON when sending them to the main process
This commit is contained in:
@@ -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--
|
||||
}
|
||||
|
||||
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user