 
 dfc = new DatafluxesController()
 dfc.loadObjects()
-#objects = dfc.getObjects()
-#selectedObject = dfc.getSelectedObject()
 
 c = new MainController()
 

  template: '#settings-template'
  data: ->
    active: dfc.getSelectedObject()
    t: this.$root.t
  methods:
    save: ->
      dfc.setSelectedObject()

      dfc.write()
    activateDataflux: (index) ->
      dfc.selectObject index
      @folders = dfc.getObjects()
      @active = dfc.getSelectedObject()
      @$broadcast 'refresh'
      dfc.write()
      c.log.debug "Activate: #{index}"
    startAutoCommit: ->
      dfc.startAutoCommit()
      @folders = dfc.getObjects()
      @active = dfc.selectObject @activeIndex
      dfc.write()
    stopAutoCommit: ->
      dfc.stopAutoCommit()
      @folders = dfc.getObjects()
      @active = dfc.selectObject @activeIndex
      dfc.write()
    commit: ->
      dfc.commit()
      @folders = dfc.getObjects()
})
