Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit e041f71

Browse files
committed
Pass safeMode and devMode on reopening a project
Resolves: #19310
1 parent 72a8b64 commit e041f71

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/atom-environment.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,12 @@ class AtomEnvironment {
10361036
commands: this.commands,
10371037
history: this.history,
10381038
config: this.config,
1039-
open: paths => this.open({ pathsToOpen: paths })
1039+
open: paths =>
1040+
this.open({
1041+
pathsToOpen: paths,
1042+
safeMode: this.inSafeMode(),
1043+
devMode: this.inDevMode()
1044+
})
10401045
});
10411046
this.reopenProjectMenuManager.update();
10421047
});

src/main-process/atom-application.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ module.exports = class AtomApplication extends EventEmitter {
619619

620620
if (process.platform === 'darwin') {
621621
this.on('application:reopen-project', ({ paths }) => {
622-
this.openPaths({ pathsToOpen: paths });
622+
const { safeMode, devMode } = this.focusedWindow();
623+
this.openPaths({ pathsToOpen: paths, safeMode, devMode });
623624
});
624625

625626
this.on('application:open', () => {

0 commit comments

Comments
 (0)