 
 c = new MainController()
 
-for mode in conf.settings.logGuiModus.value
-  c.log.addListener mode, (txt) ->
-    c.addLog "#{c.GUILogs.length+1}| #{txt}"
+conf.addListener "loaded", ->
+  for mode in conf.settings.logGuiModus.value
+    c.log.addListener mode, (txt) ->
+      c.addLog "#{c.GUILogs.length+1}| #{txt}"
+      
+c.loadConf()
 
 
 vueSettings = Vue.extend({


  methods:
    refreshRoot: ->
      @$emit 'refreshRoot'
    tabClick: (val) ->
      @activeTab = val
      c.log.debug val

      files

  events:
    'refreshAll': =>
      @folders = dfc.getObjects()
      dfc.reloadAllObjects()
      #@objects = dfc.objects
