Skip to content

Commit

Permalink
fix: Set Application Menu to Fix Mac Shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebes authored and roldanjr committed May 2, 2023
1 parent fd50316 commit 0e6d47f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/main/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { activateUser } from "./helpers/analytics";
import store from "./store";
import isDev from "electron-is-dev";
const isWin = process.platform === "win32";
const isMac = process.platform === "darwin";

import "v8-compile-cache";
import {
Expand All @@ -54,7 +55,10 @@ const trayIcon = path.join(__dirname, "./assets/tray-dark.png");

const onlySingleInstance = app.requestSingleInstanceLock();

Menu.setApplicationMenu(null);
const applicationMenu = isMac
? Menu.buildFromTemplate([{ role: "appMenu" }, { role: "editMenu" }])
: null;
Menu.setApplicationMenu(applicationMenu);

const getFrameHeight = () => {
if (isWindow()) {
Expand Down

0 comments on commit 0e6d47f

Please sign in to comment.