Store dimensions when spec window is unloaded

Refs #918
This commit is contained in:
Kevin Sawicki 2013-10-02 17:16:19 -07:00
parent 0bfc4a3a1b
commit 5895da3d6f

View File

@ -24,6 +24,7 @@ atom.keymap.loadBundledKeymaps()
$(window).on 'core:close', -> window.close()
$(window).on 'unload', ->
atom.windowMode = 'spec'
atom.getWindowState().set('dimensions', atom.getDimensions())
atom.saveWindowState()
$('html,body').css('overflow', 'auto')