@@ -382,9 +382,6 @@ class AtomApplication extends EventEmitter {
382382 this . on ( 'application:new-file' , ( ) => ( this . focusedWindow ( ) || this ) . openPath ( ) )
383383 this . on ( 'application:open-dev' , ( ) => this . promptForPathToOpen ( 'all' , { devMode : true } ) )
384384 this . on ( 'application:open-safe' , ( ) => this . promptForPathToOpen ( 'all' , { safeMode : true } ) )
385- this . on ( 'application:open' , ( ) => this . promptForPathToOpen ( 'all' , getLoadSettings ( ) , getDefaultPath ( ) ) )
386- this . on ( 'application:open-file' , ( ) => this . promptForPathToOpen ( 'file' , getLoadSettings ( ) , getDefaultPath ( ) ) )
387- this . on ( 'application:open-folder' , ( ) => this . promptForPathToOpen ( 'file' , getLoadSettings ( ) , getDefaultPath ( ) ) )
388385 this . on ( 'application:inspect' , ( { x, y, atomWindow} ) => {
389386 if ( ! atomWindow ) atomWindow = this . focusedWindow ( )
390387 if ( atomWindow ) atomWindow . browserWindow . inspectElement ( x , y )
@@ -406,6 +403,9 @@ class AtomApplication extends EventEmitter {
406403 this . on ( 'application:check-for-update' , ( ) => this . autoUpdateManager . check ( ) )
407404
408405 if ( process . platform === 'darwin' ) {
406+ this . on ( 'application:open' , ( ) => this . promptForPathToOpen ( 'all' , getLoadSettings ( ) , getDefaultPath ( ) ) )
407+ this . on ( 'application:open-file' , ( ) => this . promptForPathToOpen ( 'file' , getLoadSettings ( ) , getDefaultPath ( ) ) )
408+ this . on ( 'application:open-folder' , ( ) => this . promptForPathToOpen ( 'folder' , getLoadSettings ( ) , getDefaultPath ( ) ) )
409409 this . on ( 'application:bring-all-windows-to-front' , ( ) => Menu . sendActionToFirstResponder ( 'arrangeInFront:' ) )
410410 this . on ( 'application:hide' , ( ) => Menu . sendActionToFirstResponder ( 'hide:' ) )
411411 this . on ( 'application:hide-other-applications' , ( ) => Menu . sendActionToFirstResponder ( 'hideOtherApplications:' ) )
0 commit comments