From 9b1f171385b064a81d60c8376b6427a16764dc36 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 28 Oct 2021 11:13:21 +0200 Subject: [PATCH] don't warn if required module --- apps/remix-ide/src/app/files/fileManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/files/fileManager.js b/apps/remix-ide/src/app/files/fileManager.js index 5f689db18b..478a2ddc32 100644 --- a/apps/remix-ide/src/app/files/fileManager.js +++ b/apps/remix-ide/src/app/files/fileManager.js @@ -506,7 +506,8 @@ class FileManager extends Plugin { async setFileContent (path, content) { if (this.currentRequest) { const canCall = await this.askUserPermission('writeFile', '') - if (canCall) { + const required = this.appManager.isRequired(this.currentRequest.from) + if (canCall && !required) { // inform the user about modification after permission is granted and even if permission was saved before toaster(yo`