mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add AtomWindow.openPath()
This commit is contained in:
@@ -62,6 +62,10 @@ class AtomWindow
|
||||
event.preventDefault()
|
||||
@sendCommand 'window:close'
|
||||
|
||||
openPath: (pathToOpen) ->
|
||||
@focus()
|
||||
@sendCommand('window:open-path', pathToOpen)
|
||||
|
||||
sendCommand: (command, args...) ->
|
||||
ipc.sendChannel @browserWindow.getProcessId(), @browserWindow.getRoutingId(), 'command', command, args...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user