Hide body when unloading

This prevents a weird UI flicker when refreshing with the settings
view open.
This commit is contained in:
Kevin Sawicki 2013-08-29 15:23:26 -07:00
parent fd9f3d6543
commit e03544bab6
2 changed files with 5 additions and 2 deletions

View File

@ -56,7 +56,10 @@ window.startEditorWindow = ->
keymap.loadUserKeymaps()
atom.requireUserInitScript()
ipc.sendChannel 'update-application-menu', keymap.keystrokesByCommandForSelector('body')
$(window).on 'unload', -> unloadEditorWindow(); false
$(window).on 'unload', ->
$(document.body).hide()
unloadEditorWindow()
false
atom.show()
atom.focus()

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html style="background: #333">
<html style="background: #fff">
<head>
<title></title>