mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 22:52:08 +08:00
fix: update installing status immediately (#8339)
This commit is contained in:
parent
a44a986ace
commit
8967a82107
@ -42,8 +42,8 @@ const InstallNpxUv: FC<Props> = ({ 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<Props> = ({ 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}`,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user