Merge branch 'master' into asar

This commit is contained in:
Cheng Zhao
2015-04-03 19:50:53 +08:00
9 changed files with 85 additions and 16 deletions

View File

@@ -768,7 +768,7 @@ class Atom extends Model
callback(showSaveDialogSync())
showSaveDialogSync: (defaultPath) ->
defaultPath ?= @project?.getPath()
defaultPath ?= @project?.getPaths()[0]
currentWindow = @getCurrentWindow()
dialog = remote.require('dialog')
dialog.showSaveDialog currentWindow, {title: 'Save File', defaultPath}