mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Merge pull request #19058 from rafeca/fix-reopen-project
Fix reopen project when there are no open windows
This commit is contained in:
@@ -406,6 +406,10 @@ class AtomApplication extends EventEmitter {
|
||||
this.on('application:check-for-update', () => this.autoUpdateManager.check())
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
this.on('application:reopen-project', ({ paths }) => {
|
||||
this.openPaths({ pathsToOpen: paths })
|
||||
})
|
||||
|
||||
this.on('application:open', () => this.promptForPathToOpen('all', getLoadSettings(), getDefaultPath()))
|
||||
this.on('application:open-file', () => this.promptForPathToOpen('file', getLoadSettings(), getDefaultPath()))
|
||||
this.on('application:open-folder', () => this.promptForPathToOpen('folder', getLoadSettings(), getDefaultPath()))
|
||||
|
||||
Reference in New Issue
Block a user