mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
Sentry fix: handling events from a second instance being launched before app setup crashes
This commit is contained in:
parent
8edc9f0fc6
commit
808c7581a4
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ export default class Application extends EventEmitter {
|
||||||
openWindowsForTokenState() {
|
openWindowsForTokenState() {
|
||||||
// user may trigger this using the application menu / by focusing the app
|
// user may trigger this using the application menu / by focusing the app
|
||||||
// before migration has completed and the config has been loaded.
|
// before migration has completed and the config has been loaded.
|
||||||
if (!this.config) return;
|
if (!this.config || !this.windowManager) return;
|
||||||
|
|
||||||
const accounts = this.config.get('accounts');
|
const accounts = this.config.get('accounts');
|
||||||
const hasAccount = accounts && accounts.length > 0;
|
const hasAccount = accounts && accounts.length > 0;
|
||||||
|
|
Loading…
Reference in a new issue