From 36aac2dc57b7e56c8bf8adae2c8e2728037f1238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=89?= <940119273@qq.com> Date: Fri, 5 May 2023 09:51:19 +0000 Subject: [PATCH] =?UTF-8?q?!2191=20=E4=BC=98=E5=8C=96:=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E6=A0=8F=E5=9B=BE=E6=A0=87=E5=A2=9E=E5=8A=A0=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/ToolBar/ToolBar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/Components/ToolBar/ToolBar.tsx b/src/UI/Components/ToolBar/ToolBar.tsx index 08596019f..e3a5b346d 100644 --- a/src/UI/Components/ToolBar/ToolBar.tsx +++ b/src/UI/Components/ToolBar/ToolBar.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import { CoolDownTime } from '../../../Common/CoolDownTime'; import { commandMachine } from '../../../Editor/CommandMachine'; import { ICON_CDN } from '../../IconEnum'; +import { CommandList } from '../CommandPanel/CommandList'; import { ICommandIconInfo } from '../TopToolBar/TopToolBarInterface'; import './PropertiesPanel.less'; @@ -59,8 +60,9 @@ export class ToolBar extends React.Component { iconList.map((cmd) => { + let title = CommandList.find((c) => c.command === cmd.command)?.chName; return ( -
  • { commandMachine.ExecCommand(cmd.command);