mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
window calls atom.document.open
This commit is contained in:
@@ -42,7 +42,10 @@ windowAdditions =
|
||||
|
||||
open: (path) ->
|
||||
$atomController.window.makeKeyAndOrderFront $atomController
|
||||
atom.trigger 'window:open', path
|
||||
if atom.document.open path
|
||||
atom.trigger 'window:open', path
|
||||
else
|
||||
atom.app.open path
|
||||
|
||||
close: (path) ->
|
||||
@shutdown()
|
||||
|
||||
Reference in New Issue
Block a user