minor changes to playworks converter, not a fix, just QOL
This commit is contained in:
@@ -161,11 +161,15 @@ function renderSourceSelection() {
|
||||
function setSource(path, baseName, dir) {
|
||||
srcEl.value = path || '';
|
||||
baseNameEl.value = baseName || '';
|
||||
if (!outEl.value && dir) { outEl.value = dir.replace(/[\\\/]+$/, '') + '\\\\Output'; outputDir = outEl.value; }
|
||||
if (!outEl.value && dir) { outEl.value = defaultOutputDir(dir); outputDir = outEl.value; }
|
||||
renderSourceSelection();
|
||||
updateConvertBtn();
|
||||
}
|
||||
|
||||
function defaultOutputDir(dir) {
|
||||
return dir ? dir.replace(/[\\\/]+$/, '') + '\\Output' : '';
|
||||
}
|
||||
|
||||
function clearSource() {
|
||||
srcEl.value = '';
|
||||
baseNameEl.value = '';
|
||||
|
||||
Reference in New Issue
Block a user