mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
desktop: only show Copy menu item if there's a selection
This commit is contained in:
committed by
Abdullah Atta
parent
494d6633b5
commit
39e14d059e
@@ -90,14 +90,15 @@ function setupMenu() {
|
||||
})
|
||||
);
|
||||
|
||||
menu.append(
|
||||
new MenuItem({
|
||||
label: "Copy",
|
||||
role: "copy",
|
||||
enabled: params.selectionText.length > 0,
|
||||
accelerator: "CommandOrControl+C"
|
||||
})
|
||||
);
|
||||
if (params.selectionText.length) {
|
||||
menu.append(
|
||||
new MenuItem({
|
||||
label: "Copy",
|
||||
role: "copy",
|
||||
accelerator: "CommandOrControl+C"
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
if (params.isEditable)
|
||||
menu.append(
|
||||
|
||||
Reference in New Issue
Block a user