auto replace content if readonly is true

pull/1/head
yann300 6 years ago
parent a55b93017f
commit 570c2d0631
  1. 2
      src/app/files/file-explorer.js

@ -39,6 +39,8 @@ function fileExplorer (localRegistry, files) {
this.files.event.register('fileExternallyChanged', (path, file) => {
if (self._deps.config.get('currentFile') === path && self._deps.editor.currentContent() && self._deps.editor.currentContent() !== file.content) {
if (this.files.isReadOnly(path)) return self._deps.editor.setText(file.content)
modalDialog(path + ' changed', remixdDialog(),
{
label: 'Keep the content displayed in Remix',

Loading…
Cancel
Save