Add preserveFocus flag to keep main process tests from stealing focus

This commit is contained in:
Ash Wilson
2019-04-18 21:10:41 -04:00
parent e782cea2bf
commit b1d6e42aa9
2 changed files with 6 additions and 1 deletions

View File

@@ -292,10 +292,13 @@ class AtomApplication extends EventEmitter {
timeout,
clearWindowState,
addToLastWindow,
preserveFocus,
env
} = options
app.focus()
if (!preserveFocus) {
app.focus()
}
if (test) {
return this.runTests({