Skip to content

Comments

fix: 手动检查更新后自动开始下载#79

Open
niechy wants to merge 1 commit intoMistEO:mainfrom
niechy:fix/manual-check-update-auto-download
Open

fix: 手动检查更新后自动开始下载#79
niechy wants to merge 1 commit intoMistEO:mainfrom
niechy:fix/manual-check-update-auto-download

Conversation

@niechy
Copy link
Contributor

@niechy niechy commented Feb 21, 2026

问题

在设置页面手动点击「检查更新」后,发现新版本且有下载链接,但不会自动开始下载,UI 一直显示「准备下载」转圈。

原因

UpdateSection.tsxhandleCheckUpdate 检查到更新后只调用了 setShowUpdateDialog(true) 打开对话框,没有调用 startDownload 启动下载。downloadStatus 一直是 idle,触发了「准备下载」的 spinner 状态。

App.tsx 中自动更新检查的逻辑在发现更新后会调用 startAutoDownload(updateResult) 自动开始下载。

修复

handleCheckUpdate 中,检查到有下载链接时调用 startDownload(result) 开始下载,与自动更新行为保持一致。

Closes #8

Summary by Sourcery

Bug Fixes:

  • 在手动检查发现存在可用版本且具有有效下载链接后,自动开始更新下载。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Start the update download automatically after a manual check finds an available version with a valid download link.

修复在设置页面手动点击"检查更新"后,发现新版本但不会自动开始下载,
UI 一直显示"准备下载"转圈的问题。

与 App.tsx 中自动更新检查的行为保持一致,检查到有下载链接时调用
startDownload 开始下载。

Closes MistEO#8
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗨,我已经审查了你的更改,看起来很棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug:mxu1.3.0更新maaend到1.2.2一直在准备下载

1 participant