From 712807e1ae3d10ca9dcb8332ffa92c8a9ccb8385 Mon Sep 17 00:00:00 2001 From: ChenX Date: Sat, 8 Jan 2022 16:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E9=81=BF=E5=85=8D=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/ToolBar/ToolbarContainer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UI/Components/ToolBar/ToolbarContainer.tsx b/src/UI/Components/ToolBar/ToolbarContainer.tsx index 3484dfec5..69dd54949 100644 --- a/src/UI/Components/ToolBar/ToolbarContainer.tsx +++ b/src/UI/Components/ToolBar/ToolbarContainer.tsx @@ -49,6 +49,7 @@ export class ToolbarContainer extends React.Component<{}, {}> { { end(app.WebSocket, app.WebSocket.OnLinkEvent, () => { + arrayRemoveIf(this.iconList, l => l.command === CommandNames.ToggleSyncData); if (app.WebSocket.IsLink) { Log("成功连接到渲染器!"); @@ -65,8 +66,6 @@ export class ToolbarContainer extends React.Component<{}, {}> { else this.iconList.push({ svg: IconEnum.Synchronous, title: "未同步", command: CommandNames.ToggleSyncData }); } - else - arrayRemoveIf(this.iconList, l => l.command === CommandNames.ToggleSyncData); }); let gws = SwitchServerStore.GetInstance()._gangplankWs;