mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-05 10:32:40 +00:00
Fix default file name in save-image-as (#385)
This commit is contained in:
parent
b27f72e3a3
commit
b7a0402de5
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
|
|||
label: _t('Save image as...'),
|
||||
accelerator: 's',
|
||||
async click() {
|
||||
const targetFileName = params.titleText || "image.png";
|
||||
const targetFileName = params.suggestedFilename || params.altText || "image.png";
|
||||
const { filePath } = await dialog.showSaveDialog({
|
||||
defaultPath: targetFileName,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue