diff --git a/package-lock.json b/package-lock.json index d9ae150..7590aa9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "behavior3editor", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "behavior3editor", - "version": "1.1.1", + "version": "1.1.2", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 3cbd577..411038a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "behavior3editor", - "version": "1.1.1", + "version": "1.1.2", "main": "dist-electron/main/index.js", "description": "行为树编辑器", "author": "zhandouxiaojiji & codetypes", diff --git a/src/components/titlebar.tsx b/src/components/titlebar.tsx index 0a65b20..d344232 100644 --- a/src/components/titlebar.tsx +++ b/src/components/titlebar.tsx @@ -1,5 +1,5 @@ import { useWorkspace } from "@/contexts/workspace-context"; -import { Hotkey } from "@/misc/keys"; +import { Hotkey, isMacos } from "@/misc/keys"; import Path from "@/misc/path"; import { SearchOutlined } from "@ant-design/icons"; import { Button, Flex, LayoutProps, Select } from "antd"; @@ -52,7 +52,7 @@ export const TitleBar: FC = () => { position: "absolute", }} /> -
{process.platform !== "darwin" && }
+
{!isMacos && }