mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Store pathToOpen using new atom.set/getWindowState api
When you use `setWindowState`, your data is saved across refreshes. You can only store state that can be serialized to JSON.
This commit is contained in:
@@ -47,8 +47,10 @@ windowAdditions =
|
||||
false
|
||||
|
||||
shutdown: ->
|
||||
@rootView?.deactivate()
|
||||
@rootView = null
|
||||
if @rootView
|
||||
atom.setWindowState('pathToOpen', @rootView.project.getPath())
|
||||
@rootView.deactivate()
|
||||
@rootView = null
|
||||
$(window).unbind('focus')
|
||||
$(window).unbind('blur')
|
||||
$(window).off('before')
|
||||
|
||||
Reference in New Issue
Block a user