mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +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,12 +683,12 @@ class NylasEnvConstructor
|
|||
window.requestAnimationFrame =>
|
||||
window.requestAnimationFrame =>
|
||||
@displayWindow() unless initializeInBackground
|
||||
@startWindow()
|
||||
# These don't need to wait for the window's stores and such
|
||||
# to fully activate:
|
||||
@requireUserInitScript() unless safeMode
|
||||
@showMainWindow()
|
||||
ipcRenderer.send('window-command', 'window:loaded')
|
||||
@startWindow().then =>
|
||||
# These don't need to wait for the window's stores and
|
||||
# such to fully activate:
|
||||
@requireUserInitScript() unless safeMode
|
||||
@showMainWindow()
|
||||
ipcRenderer.send('window-command', 'window:loaded')
|
||||
|
||||
# Initializes a secondary window.
|
||||
# NOTE: If the `packageLoadingDeferred` option is set (which is true for
|
||||
|
|
Loading…
Reference in a new issue