mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Clone options parameter before modifying it.
This commit is contained in:
parent
1dbfd0b5ac
commit
6cdc555a93
@ -786,6 +786,8 @@ class Atom extends Model
|
||||
showSaveDialogSync: (options={}) ->
|
||||
if _.isString(options)
|
||||
options = defaultPath: options
|
||||
else
|
||||
options = _.clone(options)
|
||||
currentWindow = @getCurrentWindow()
|
||||
dialog = remote.require('dialog')
|
||||
options.title ?= 'Save File'
|
||||
|
Loading…
Reference in New Issue
Block a user