This commit is contained in:
Jan Prochazka 2021-09-04 09:34:10 +02:00
parent 77ebf0051c
commit 8cc8f9f0b9

View File

@ -17,6 +17,7 @@
const filePaths = electron.remote.dialog.showOpenDialogSync(electron.remote.getCurrentWindow(), {
defaultPath: values[name],
properties: ['showHiddenFiles'],
filters: [{ name: 'All Files', extensions: ['*'] }],
});
const filePath = filePaths && filePaths[0];
if (filePath) setFieldValue(name, filePath);