mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Create new project when state doesn't return a Project
This commit is contained in:
@@ -120,11 +120,10 @@ class Atom
|
||||
|
||||
deserializeProject: ->
|
||||
Project = require './project'
|
||||
state = @getWindowState()
|
||||
@project = state.get('project')
|
||||
unless @project?
|
||||
@project = @getWindowState('project')
|
||||
unless @project instanceof Project
|
||||
@project = new Project(path: @getLoadSettings().initialPath)
|
||||
state.set('project', @project)
|
||||
@setWindowState('project', @project)
|
||||
|
||||
deserializeRootView: ->
|
||||
RootView = require './root-view'
|
||||
|
||||
Reference in New Issue
Block a user