Preserve previous API behavior

This commit is contained in:
Jesse Grosjean 2015-06-08 16:19:39 -04:00
parent 05e6d9e55d
commit 656c91beb4

View File

@ -784,6 +784,8 @@ class Atom extends Model
callback(showSaveDialogSync())
showSaveDialogSync: (options={}) ->
if _.isString(options)
options = defaultPath: options
currentWindow = @getCurrentWindow()
dialog = remote.require('dialog')
options.title ?= 'Save File'