fix: add edit menu on macOS to allow clipboard actions
This commit is contained in:
parent
9120d05efc
commit
a277f13291
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ function initTray(win: BrowserWindow) {
|
||||||
|
|
||||||
function initMenuBar(win: BrowserWindow) {
|
function initMenuBar(win: BrowserWindow) {
|
||||||
const isWindows = process.platform === "win32";
|
const isWindows = process.platform === "win32";
|
||||||
|
const isMacOS = process.platform === "darwin";
|
||||||
const wantCtrlQ = !isWindows || VencordSettings.store.winCtrlQ;
|
const wantCtrlQ = !isWindows || VencordSettings.store.winCtrlQ;
|
||||||
|
|
||||||
const menu = Menu.buildFromTemplate([
|
const menu = Menu.buildFromTemplate([
|
||||||
|
@ -146,6 +147,7 @@ function initMenuBar(win: BrowserWindow) {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
...(isMacOS ? [{ role: "editMenu" as const }] : []),
|
||||||
{
|
{
|
||||||
label: "Zoom",
|
label: "Zoom",
|
||||||
submenu: [
|
submenu: [
|
||||||
|
|
Reference in a new issue