fix(window): don't show if initialized in background

Fixes https://github.com/nylas/N1/issues/2149
This commit is contained in:
Evan Morikawa 2016-05-09 12:51:17 -04:00
parent 92a54f8013
commit 335a20aabb

View file

@ -54,7 +54,7 @@ export default class WindowLauncher {
win.setLoadSettings(newLoadSettings);
}
if (!opts.hidden) {
if (!opts.hidden && !opts.initializeInBackground) {
// NOTE: In the case of a cold window, this will show it once
// loaded. If it's a hotWindow, since hotWindows have a
// `hidden:true` flag, nothing will show. When `setLoadSettings`