Unverified Commit 5c68e892 authored by yann300's avatar yann300 Committed by GitHub

Don't call `setFileContent` 2 times

parent 538cd914
...@@ -355,7 +355,6 @@ class FileManager extends Plugin { ...@@ -355,7 +355,6 @@ class FileManager extends Plugin {
if (this.currentRequest) { if (this.currentRequest) {
const canCall = await this.askUserPermission('writeFile', '') const canCall = await this.askUserPermission('writeFile', '')
if (canCall) { if (canCall) {
this._setFileInternal(path, content)
// inform the user about modification after permission is granted and even if permission was saved before // inform the user about modification after permission is granted and even if permission was saved before
toaster(yo` toaster(yo`
<div> <div>
......
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