mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Add preserveFocus flag to keep main process tests from stealing focus
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user