mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Store grammars in Atom::unloadEditorWindow
This commit is contained in:
@@ -333,6 +333,7 @@ class Atom extends Model
|
||||
unloadEditorWindow: ->
|
||||
return if not @project and not @workspaceView
|
||||
|
||||
@storeGrammarsForOpenEditors()
|
||||
@state.syntax = @syntax.serialize()
|
||||
@state.project = @project.serialize()
|
||||
@state.workspace = @workspace.serialize()
|
||||
|
||||
@@ -42,7 +42,6 @@ class WindowEventHandler
|
||||
|
||||
@subscribe $(window), 'unload', ->
|
||||
atom.storeWindowDimensions()
|
||||
atom.storeGrammarsForOpenEditors()
|
||||
|
||||
@subscribeToCommand $(window), 'window:toggle-full-screen', -> atom.toggleFullScreen()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user