mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix(app): Correctly select the save folder for dump
This commit is contained in:
parent
3e8dabc1e4
commit
4b3897c7f0
@ -63,16 +63,17 @@
|
||||
|
||||
const handleBrowse = async () => {
|
||||
const electron = getElectron();
|
||||
const files = await electron.showSaveDialog({
|
||||
const file = await electron.showSaveDialog({
|
||||
properties: ['showOverwriteConfirmation'],
|
||||
filters: [
|
||||
{ name: 'SQL Files', extensions: ['sql'] },
|
||||
{ name: 'All Files', extensions: ['*'] },
|
||||
],
|
||||
defaultPath: outputFile,
|
||||
});
|
||||
if (files && files[0]) {
|
||||
if (file) {
|
||||
const path = window.require('path');
|
||||
outputFile = files[0];
|
||||
outputFile = file;
|
||||
outputLabel = path.parse(outputFile).name;
|
||||
pureFileName = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user