don't sync if nothing is loaded in the editor

pull/1/head
yann300 8 years ago
parent 405ea9d351
commit 56850ce7f5
  1. 2
      src/app.js

@ -826,7 +826,7 @@ var run = function () {
function editorSyncFile () { function editorSyncFile () {
var currentFile = config.get('currentFile') var currentFile = config.get('currentFile')
if (currentFile) { if (currentFile && editor.current()) {
var input = editor.get(currentFile) var input = editor.get(currentFile)
files.set(currentFile, input) files.set(currentFile, input)
} }

Loading…
Cancel
Save