     # update
     DataAdapter.removeProjects(saved)
     DataAdapter.addProjects(projects)
-
 
   ###
    load activities for account.

    Option.onChanged('hideNonTicketProject',  _toggleProjectHidden)
    Log.debug "[4] initializeEvents success"


  ###
   load some data from redmine.
  ###

    Message.toast message, 5000
    return null

  ###
   update projects and remove projects which was not fetched.
   @param projectsList {Array} - array of fetched projects.
  ###
  _updateProjects = (projectsList) =>
    projects = projectsList.compact().flatten().unique("id")
    return if projects.length is 0

    # update settings specified by user, using saved data on chrome.
    saved = DataAdapter.getProjects(projects[0].url)
