mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Update src/main-process/atom-application.js
Co-Authored-By: smashwilson <smashwilson@github.com>
This commit is contained in:
@@ -599,7 +599,7 @@ class AtomApplication extends EventEmitter {
|
||||
|
||||
// Triggered by the 'open-file' event from Electron:
|
||||
// https://electronjs.org/docs/api/app#event-open-file-macos
|
||||
// For example, this is fired when a file is dragged and dropped onto the dock.
|
||||
// For example, this is fired when a file is dragged and dropped onto the Atom application icon in the dock.
|
||||
this.disposable.add(ipcHelpers.on(app, 'open-file', (event, pathToOpen) => {
|
||||
event.preventDefault()
|
||||
this.openPath({pathToOpen})
|
||||
|
||||
Reference in New Issue
Block a user