Native open code now presents the open panel from the browser process

This avoids retina resolution issues and ink framework errors that occur when opening dialogs from the chromium renderer process.
This commit is contained in:
Nathan Sobo
2012-08-28 13:54:44 -05:00
parent 48a31ecdb8
commit 16c7c523cf
7 changed files with 23 additions and 29 deletions

View File

@@ -21,9 +21,7 @@ class Keymap
$(document).on 'new-window', => $native.newWindow()
$(document).on 'open-user-configuration', => atom.open(atom.configFilePath)
$(document).on 'open', =>
path = $native.openDialog()
atom.open(path) if path
$(document).on 'open', => atom.open()
bindKeys: (selector, bindings) ->
index = @bindingSets.length