Show crash report modal earlier
This commit is contained in:
parent
2dc3b05c79
commit
507a73ddcb
1 changed files with 6 additions and 5 deletions
|
@ -1172,6 +1172,12 @@ export async function startApp(): Promise<void> {
|
||||||
window.reduxActions.expiration.hydrateExpirationStatus(
|
window.reduxActions.expiration.hydrateExpirationStatus(
|
||||||
window.getBuildExpiration()
|
window.getBuildExpiration()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Process crash reports if any. Note that the modal won't be visible
|
||||||
|
// until the app will finish loading.
|
||||||
|
window.reduxActions.crashReports.setCrashReportCount(
|
||||||
|
await window.IPC.crashReports.getCount()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// end of window.storage.onready() callback
|
// end of window.storage.onready() callback
|
||||||
|
@ -2052,11 +2058,6 @@ export async function startApp(): Promise<void> {
|
||||||
StartupQueue.flush();
|
StartupQueue.flush();
|
||||||
await flushAttachmentDownloadQueue();
|
await flushAttachmentDownloadQueue();
|
||||||
|
|
||||||
// Process crash reports if any
|
|
||||||
window.reduxActions.crashReports.setCrashReportCount(
|
|
||||||
await window.IPC.crashReports.getCount()
|
|
||||||
);
|
|
||||||
|
|
||||||
// Kick off a profile refresh if necessary, but don't wait for it, as failure is
|
// Kick off a profile refresh if necessary, but don't wait for it, as failure is
|
||||||
// tolerable.
|
// tolerable.
|
||||||
if (!routineProfileRefresher) {
|
if (!routineProfileRefresher) {
|
||||||
|
|
Loading…
Reference in a new issue