From 54de539b8b0eff08ef6dc810811a59c2a0bddf13 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 27 May 2013 21:38:46 +0800 Subject: [PATCH] 'pathsToOpen' passed in 'open' message is an array. --- src/atom-application.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atom-application.coffee b/src/atom-application.coffee index 6478772d4..918fde1fe 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -157,11 +157,11 @@ class AtomApplication @openConfig() ipc.on 'open', (processId, routingId, pathsToOpen) => - if not pathsToOpen + if pathsToOpen?.length > 0 + @open(pathsToOpen) + else pathsToOpen = dialog.showOpenDialog title: 'Open', properties: ['openFile', 'openDirectory', 'multiSelections', 'createDirectory'] @open(pathsToOpen) if pathsToOpen? - else - @open(pathsToOpen) ipc.on 'new-window', => @open()