Open
Conversation
修复在设置页面手动点击"检查更新"后,发现新版本但不会自动开始下载, UI 一直显示"准备下载"转圈的问题。 与 App.tsx 中自动更新检查的行为保持一致,检查到有下载链接时调用 startDownload 开始下载。 Closes MistEO#8
Contributor
There was a problem hiding this comment.
嗨,我已经审查了你的更改,看起来很棒!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
在设置页面手动点击「检查更新」后,发现新版本且有下载链接,但不会自动开始下载,UI 一直显示「准备下载」转圈。
原因
UpdateSection.tsx的handleCheckUpdate检查到更新后只调用了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: