     @editor.render @elems.editor, @elems.editorToolbar, =>
      @_watchInterval = setInterval @on.watchChanges, CHANGED_WATCH_INTERVAL
      @_saveTemInterval = setInterval @on.saveTemporary, TEMPORARY_SAVE_INTERVAL
-     @editor.setText @content
+     @editor.setText @_tempContent
+     delete @_tempContent
+     if @file?
+      @elems.save.style.display = 'inline-block'
+     @on.watchChanges()
      callback()
 
    @listen 'folder', -> IPC.send 'openFolder'

    else
     @elems.saveName.textContent = "#{@file.name}"



  APP = new App()

   @listen 'fileOpened', (e, files) ->
    return if not files?
    return if files.length <= 0
    @options.file = files[0]
    @setFile()

    @content = "#{FS.readFileSync @file.path}"
    @editor.setText @content
    @_editorChanged = true
    @on.saveTemporary()
    @saveOptions()
    @elems.save.style.display = 'inline-block'
    @elems.saveName.textContent = "#{@file.name}"
