desktop: add menu item to copy images in editor (#4373)

This commit is contained in:
Muhammad Ali
2024-03-04 13:27:46 +05:00
committed by GitHub
parent 0ed605a5b9
commit 9550350f25

View File

@@ -131,6 +131,17 @@ function setupMenu() {
);
}
if (params.mediaType === "image")
menu.append(
new MenuItem({
id: "copy-image",
label: "Copy Image",
click() {
globalThis.window?.webContents.copyImageAt(params.x, params.y);
}
})
);
if (params.isEditable)
menu.append(
new MenuItem({