A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: only show native menus on macos
Abdullah Atta2aacadc24d20
diff --git a/apps/web/src/hooks/use-menu.ts b/apps/web/src/hooks/use-menu.tsindex 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<MenuStore>((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 =