fix: add edit menu on macOS to allow clipboard actions

This commit is contained in:
Ryan Cao 2023-04-11 23:31:49 +08:00
parent 9120d05efc
commit a277f13291
No known key found for this signature in database

View file

@ -79,6 +79,7 @@ function initTray(win: BrowserWindow) {
function initMenuBar(win: BrowserWindow) {
const isWindows = process.platform === "win32";
const isMacOS = process.platform === "darwin";
const wantCtrlQ = !isWindows || VencordSettings.store.winCtrlQ;
const menu = Menu.buildFromTemplate([
@ -146,6 +147,7 @@ function initMenuBar(win: BrowserWindow) {
}
]
},
...(isMacOS ? [{ role: "editMenu" as const }] : []),
{
label: "Zoom",
submenu: [