Commit 570c2d06 authored by yann300's avatar yann300

auto replace content if readonly is true

parent a55b9301
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment