         if project
           if project.template? and data[project.template]?
             project = _.deepExtend(project, data[project.template])
+          Settings ?= require './settings'
           Settings.enable(project.settings) if project.settings?
       done?()
 

        'group'
      ]

  projectManagerView: null
  projectManagerAddView: null
  filepath: null
  subscriptions: null

          @updateFile()
          @subscribeToProjectsFile()

  handleEvents: (state) ->
    @subscriptions.add atom.commands.add 'atom-workspace',
      'project-manager:toggle': =>
        ProjectsListView ?= require './project-manager-view'
        projectsListView = new ProjectsListView()
        projectsListView.toggle(@)

      'project-manager:save-project': =>
        ProjectsAddView ?= require './project-manager-add-view'
        projectsAddView = new ProjectsAddView()
        projectsAddView.toggle(@)

      'project-manager:edit-projects': =>
        atom.workspace.open @file()
