INNER CODE UNIT · JavaScript
handleBrowseOutputPath
stemrollerapp/stemroller · main-src/main.js:149
async function handleBrowseOutputPath() {
const response = await dialog.showOpenDialog(mainWindow, {
title: 'Select folder to store output stems',
properties: ['openDirectory'],
})
if (response.filePaths.length === 1) {
processQueue.setOutputPath(response.filePaths[0])
return processQueue.getOutputPath()
}
return null
}
async function handleSetModelName(event, name) {
return processQueue.setModelName(name)
}
async function handleSetLocalFileOutputToContainingDir(event, value) {
return processQueue.setLocalFileOutputToContainingDir(value)