From 2aacadc24d20517841a5e67cd86abbe0b223efb4 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 1 May 2025 14:53:44 +0500 Subject: [PATCH] desktop: only show native menus on macos --- apps/web/src/hooks/use-menu.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/hooks/use-menu.ts b/apps/web/src/hooks/use-menu.ts index bd93ec8f7..0d9d7b3c3 100644 --- a/apps/web/src/hooks/use-menu.ts +++ b/apps/web/src/hooks/use-menu.ts @@ -22,6 +22,7 @@ import { shallow } from "zustand/shallow"; import { MenuItem, PositionOptions } from "@notesnook/ui"; import { desktop } from "../common/desktop-bridge"; import { useThemeEngineStore } from "@notesnook/theme"; +import { isMac } from "../utils/platform"; type MenuOptions = { position?: PositionOptions; @@ -45,7 +46,7 @@ const useMenuStore = create((set) => ({ blocking: false }, open: async (items, options) => { - if (IS_DESKTOP_APP && canShowNativeMenu(items)) { + if (IS_DESKTOP_APP && canShowNativeMenu(items) && isMac()) { const serializedItems = await resolveMenuItems(items); const scopes = useThemeEngineStore.getState().theme.scopes; const menuIconColor =