mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Preserve previous API behavior
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user