defer badge and menu state updates (#9223)
This commit is contained in:
parent
7d29b3be13
commit
82d98b8ff1
|
@ -196,8 +196,6 @@ export default class RuntimeBackground {
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.notificationsService.updateConnection(msg.command === "loggedIn");
|
await this.notificationsService.updateConnection(msg.command === "loggedIn");
|
||||||
await this.main.refreshBadge();
|
|
||||||
await this.main.refreshMenu(false);
|
|
||||||
this.systemService.cancelProcessReload();
|
this.systemService.cancelProcessReload();
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
|
@ -209,6 +207,13 @@ export default class RuntimeBackground {
|
||||||
item,
|
item,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @TODO these need to happen last to avoid blocking `tabSendMessageData` above
|
||||||
|
// The underlying cause exists within `cipherService.getAllDecrypted` via
|
||||||
|
// `getAllDecryptedForUrl` and is anticipated to be refactored
|
||||||
|
await this.main.refreshBadge();
|
||||||
|
await this.main.refreshMenu(false);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "addToLockedVaultPendingNotifications":
|
case "addToLockedVaultPendingNotifications":
|
||||||
|
|
Loading…
Reference in New Issue