mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(window): don't show if initialized in background
Fixes https://github.com/nylas/N1/issues/2149
This commit is contained in:
parent
92a54f8013
commit
335a20aabb
|
@ -54,7 +54,7 @@ export default class WindowLauncher {
|
||||||
win.setLoadSettings(newLoadSettings);
|
win.setLoadSettings(newLoadSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!opts.hidden) {
|
if (!opts.hidden && !opts.initializeInBackground) {
|
||||||
// NOTE: In the case of a cold window, this will show it once
|
// NOTE: In the case of a cold window, this will show it once
|
||||||
// loaded. If it's a hotWindow, since hotWindows have a
|
// loaded. If it's a hotWindow, since hotWindows have a
|
||||||
// `hidden:true` flag, nothing will show. When `setLoadSettings`
|
// `hidden:true` flag, nothing will show. When `setLoadSettings`
|
||||||
|
|
Loading…
Reference in a new issue