From 570c2d0631de86b6111bec1f7043481cda4e636a Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 1 Oct 2018 12:11:53 +0200 Subject: [PATCH] auto replace content if readonly is true --- src/app/files/file-explorer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 8b1eafc30d..730797076c 100644 --- a/src/app/files/file-explorer.js +++ b/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',