|
|
@ -241,14 +241,7 @@ function fileExplorer (localRegistry, files, menuItems) { |
|
|
|
if (!removeFolder) { |
|
|
|
if (!removeFolder) { |
|
|
|
tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) |
|
|
|
tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const provider = fileManager.currentFileProvider() |
|
|
|
self.updatePath(self.files.type) |
|
|
|
|
|
|
|
|
|
|
|
if (provider) { |
|
|
|
|
|
|
|
const { type } = provider |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return self.updatePath(type) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.updatePath('browser') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, () => {}) |
|
|
|
}, () => {}) |
|
|
|
} |
|
|
|
} |
|
|
@ -292,14 +285,7 @@ function fileExplorer (localRegistry, files, menuItems) { |
|
|
|
if (!removeFile) { |
|
|
|
if (!removeFile) { |
|
|
|
tooltip(`Failed to remove file ${key}.`) |
|
|
|
tooltip(`Failed to remove file ${key}.`) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const provider = fileManager.currentFileProvider() |
|
|
|
self.updatePath(self.files.type) |
|
|
|
|
|
|
|
|
|
|
|
if (provider) { |
|
|
|
|
|
|
|
const { type } = provider |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return self.updatePath(type) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.updatePath('browser') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
() => {} |
|
|
|
() => {} |
|
|
|