mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-12 07:34:52 +08:00
fix(load): fix window load timing
Summary: The app regressed to launching a blank white page for a while before showing the UI. This was because I forgot to await for the now async package loading Test Plan: Manually boot app with compile cache disabled Reviewers: mark, spang, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D3883
This commit is contained in:
parent
3a49bfe448
commit
8a18ac3e14
1 changed files with 6 additions and 6 deletions
|
@ -683,9 +683,9 @@ class NylasEnvConstructor
|
||||||
window.requestAnimationFrame =>
|
window.requestAnimationFrame =>
|
||||||
window.requestAnimationFrame =>
|
window.requestAnimationFrame =>
|
||||||
@displayWindow() unless initializeInBackground
|
@displayWindow() unless initializeInBackground
|
||||||
@startWindow()
|
@startWindow().then =>
|
||||||
# These don't need to wait for the window's stores and such
|
# These don't need to wait for the window's stores and
|
||||||
# to fully activate:
|
# such to fully activate:
|
||||||
@requireUserInitScript() unless safeMode
|
@requireUserInitScript() unless safeMode
|
||||||
@showMainWindow()
|
@showMainWindow()
|
||||||
ipcRenderer.send('window-command', 'window:loaded')
|
ipcRenderer.send('window-command', 'window:loaded')
|
||||||
|
|
Loading…
Add table
Reference in a new issue