mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-03-01 02:37:39 +01:00
Add copy variant for image-specific "copy link address" (#328)
This commit is contained in:
parent
08f8f88508
commit
0a070ac6ed
src
@ -38,6 +38,7 @@
|
|||||||
"File": "File",
|
"File": "File",
|
||||||
"Copy image": "Copy image",
|
"Copy image": "Copy image",
|
||||||
"Copy email address": "Copy email address",
|
"Copy email address": "Copy email address",
|
||||||
|
"Copy image address": "Copy image address",
|
||||||
"Copy link address": "Copy link address",
|
"Copy link address": "Copy link address",
|
||||||
"Save image as...": "Save image as...",
|
"Save image as...": "Save image as...",
|
||||||
"Failed to save image": "Failed to save image",
|
"Failed to save image": "Failed to save image",
|
||||||
|
@ -125,7 +125,9 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
|
|||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
popupMenu.append(new MenuItem({
|
popupMenu.append(new MenuItem({
|
||||||
label: _t('Copy link address'),
|
label: params.hasImageContents
|
||||||
|
? _t('Copy image address')
|
||||||
|
: _t('Copy link address'),
|
||||||
accelerator: 'a',
|
accelerator: 'a',
|
||||||
click() {
|
click() {
|
||||||
clipboard.writeText(url);
|
clipboard.writeText(url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user