mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 09:44:00 +00:00
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
const filePaths = electron.remote.dialog.showOpenDialogSync(electron.remote.getCurrentWindow(), {
|
const filePaths = electron.remote.dialog.showOpenDialogSync(electron.remote.getCurrentWindow(), {
|
||||||
defaultPath: values[name],
|
defaultPath: values[name],
|
||||||
properties: ['showHiddenFiles'],
|
properties: ['showHiddenFiles'],
|
||||||
|
filters: [{ name: 'All Files', extensions: ['*'] }],
|
||||||
});
|
});
|
||||||
const filePath = filePaths && filePaths[0];
|
const filePath = filePaths && filePaths[0];
|
||||||
if (filePath) setFieldValue(name, filePath);
|
if (filePath) setFieldValue(name, filePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user