mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15: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() {
|
||||
// user may trigger this using the application menu / by focusing the app
|
||||
// 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 hasAccount = accounts && accounts.length > 0;
|
||||
|
|
Loading…
Reference in a new issue