Commit ea3d3c41 authored by Aniket-Engg's avatar Aniket-Engg Committed by yann300

normalize file path only if exists

parent a74ef78a
......@@ -612,11 +612,11 @@ class FileManager extends Plugin {
}
async openFile (file) {
file = this.normalize(file)
if (!file) {
this.emit('noFileSelected')
this.events.emit('noFileSelected')
} else {
file = this.normalize(file)
this.saveCurrentFile()
const resolved = this.getPathFromUrl(file)
file = resolved.file
......
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