mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add atom.openWindow()
This commit is contained in:
committed by
Nathan Sobo
parent
b842a727ee
commit
31d872fbfe
@@ -175,6 +175,9 @@ window.atom =
|
||||
openConfig: ->
|
||||
ipc.sendChannel('open-config')
|
||||
|
||||
openWindow: (windowSettings) ->
|
||||
ipc.sendChannel('open-window', windowSettings)
|
||||
|
||||
confirm: (message, detailedMessage, buttonLabelsAndCallbacks...) ->
|
||||
buttons = []
|
||||
callbacks = []
|
||||
|
||||
@@ -184,6 +184,9 @@ class AtomApplication
|
||||
else
|
||||
@promptForPath()
|
||||
|
||||
ipc.on 'open-window', (processId, routingId, windowSettings) ->
|
||||
new AtomWindow(windowSettings)
|
||||
|
||||
ipc.on 'open-dev', (processId, routingId, pathsToOpen) =>
|
||||
if pathsToOpen?.length > 0
|
||||
@openPaths({pathsToOpen, devMode: true})
|
||||
|
||||
Reference in New Issue
Block a user