From 8967a8210703f7f6fabca9d705280da0311b52ce Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Mon, 21 Jul 2025 12:44:00 +0800 Subject: [PATCH] fix: update installing status immediately (#8339) --- src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx b/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx index 8154132ae7..ef1bbfad3e 100644 --- a/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx +++ b/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx @@ -42,8 +42,8 @@ const InstallNpxUv: FC = ({ mini = false }) => { try { setIsInstallingUv(true) await window.api.installUVBinary() - setIsUvInstalled(true) setIsInstallingUv(false) + dispatch(setIsUvInstalled(true)) } catch (error: any) { window.message.error({ content: `${t('settings.mcp.installError')}: ${error.message}`, key: 'mcp-install-error' }) setIsInstallingUv(false) @@ -55,8 +55,8 @@ const InstallNpxUv: FC = ({ mini = false }) => { try { setIsInstallingBun(true) await window.api.installBunBinary() - setIsBunInstalled(true) setIsInstallingBun(false) + dispatch(setIsBunInstalled(true)) } catch (error: any) { window.message.error({ content: `${t('settings.mcp.installError')}: ${error.message}`,