mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-26 18:11:22 -08:00
Fix download path preference is not respected in save dialog (#247)
This commit is contained in:
parent
317bfab65a
commit
23562d9bee
1 changed files with 7 additions and 0 deletions
|
|
@ -451,6 +451,13 @@ const addView = (browserWindow, workspace) => {
|
|||
// eslint-disable-next-line no-param-reassign
|
||||
item.savePath = finalFilePath;
|
||||
}
|
||||
} else {
|
||||
// set preferred path for save dialog
|
||||
const opts = {
|
||||
...item.getSaveDialogOptions(),
|
||||
defaultPath: path.join(downloadPath, item.getFilename()),
|
||||
};
|
||||
item.setSaveDialogOptions(opts);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue