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

    @resources = {}
    @_editorChanged = false
    @content = ''
    @editor = new Editor
     openUrl: @on.openUrl
     onChanged: @on.editorChanged

   load: (callback) ->
    IPC.on 'userDataPath', (e, path) =>
     @_userDataPath = path
     #TODO load options, temporary
     callback()
    IPC.send 'getUserDataPath'

