misc: configurator: Fix user-input working directory not working
User-input working directory will not work if there's no path split at
the end. This patch checks and adds if no path split at the end of
working directory path.
@@ -59,6 +59,9 @@ export default {
if (folderPath[0] === '~') {
folderPath = window.systemInfo.homeDir + window.systemInfo.pathSplit + folderPath.substring(1)
}
+ if (folderPath.charAt(folderPath.length - 1) !== window.systemInfo.pathSplit) {
+ folderPath = folderPath + window.systemInfo.pathSplit;
+ }
this.WorkingFolder = folderPath;
configurator.readDir(folderPath, false)
