fix(launchscreen): hack until renderer sync fixed upstream

This commit is contained in:
Ben Gotow 2016-02-18 16:09:30 -08:00
parent d722153de7
commit c3ca9c4a9e
2 changed files with 25 additions and 17 deletions

View file

@ -665,23 +665,30 @@ class NylasEnvConstructor extends Model
startRootWindow: -> startRootWindow: ->
{safeMode, windowType, initializeInBackground} = @getLoadSettings() {safeMode, windowType, initializeInBackground} = @getLoadSettings()
@displayWindow() unless initializeInBackground # Temporary. It takes five paint cycles for all the CSS in index.html to
# be applied. Remove if https://github.com/atom/brightray/issues/196 fixed!
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
@displayWindow() unless initializeInBackground
@registerCommands() @registerCommands()
@loadConfig() @loadConfig()
@keymaps.loadBundledKeymaps() @keymaps.loadBundledKeymaps()
@themes.loadBaseStylesheets() @themes.loadBaseStylesheets()
@packages.loadPackages(windowType) @packages.loadPackages(windowType)
@deserializePackageStates() @deserializePackageStates()
@deserializeSheetContainer() @deserializeSheetContainer()
@packages.activate() @packages.activate()
@keymaps.loadUserKeymap() @keymaps.loadUserKeymap()
@requireUserInitScript() unless safeMode @requireUserInitScript() unless safeMode
@menu.update() @menu.update()
@showRootWindow() @showRootWindow()
ipcRenderer.send('window-command', 'window:loaded') ipcRenderer.send('window-command', 'window:loaded')
showRootWindow: -> showRootWindow: ->
document.getElementById("application-loading-cover").remove() document.getElementById("application-loading-cover").remove()

File diff suppressed because one or more lines are too long