update editor

pull/1/head
yann300 7 years ago
parent 7b3618d50b
commit a766ae8504
  1. 3
      src/app/files/fileManager.js

@ -92,7 +92,7 @@ class FileManager {
if (path === this.opt.config.get('currentFile')) { if (path === this.opt.config.get('currentFile')) {
this.opt.config.set('currentFile', '') this.opt.config.set('currentFile', '')
} }
this.opt.editor.discard(path) this.opt.editor.discardCurrentSession()
delete this.tabbedFiles[path] delete this.tabbedFiles[path]
this.refreshTabs() this.refreshTabs()
} }
@ -131,6 +131,7 @@ class FileManager {
_switchFile(browserProvider.type + '/' + fileList[0]) _switchFile(browserProvider.type + '/' + fileList[0])
} else { } else {
self.event.trigger('currentFileChanged', []) self.event.trigger('currentFileChanged', [])
self.opt.editor.displayEmptyReadOnlySession()
} }
}) })
} }

Loading…
Cancel
Save