Skip to content

fix(资源更新): 修复启动器更新弹窗卡死与重复弹出 - #2715

Merged
ShadowLemoon merged 1 commit into
OneDragon-Anything:refactor/resource-downloadfrom
kawayiYokami:fix/resource-download-compat
Aug 11, 2026
Merged

fix(资源更新): 修复启动器更新弹窗卡死与重复弹出#2715
ShadowLemoon merged 1 commit into
OneDragon-Anything:refactor/resource-downloadfrom
kawayiYokami:fix/resource-download-compat

Conversation

@kawayiYokami

Copy link
Copy Markdown
Contributor

为什么改

启动器启动时若 GitHub 网络慢,弹窗构造在主线程同步请求启动器版本信息(pygit2 list_heads),UI 卡死无响应;且弹窗处理完毕后待更新标记未清理,导致同一会话内反复弹窗。

改动要点

  • 修复:UpdateService 增加启动器版本信息缓存,检查线程查询后写入,UI 构造下载项只读缓存,主线程不再发起网络请求
  • 修复:资源更新检查每次启动只执行一次,弹窗处理完毕后清除待更新标记,不再重复弹窗
  • 修复:OCR 下载等待期间抑制弹窗,避免任务已在队列时二次弹出

关联

承接 #2714(兼容修复已合入本分支)

- UpdateService 增加启动器版本缓存,检查线程查询后 UI 构造只读缓存,避免主线程网络请求卡死
- 资源更新检查每次启动只执行一次,弹窗处理完毕后清除待更新标记,不再重复弹窗
- OCR 下载等待期间抑制弹窗,避免任务在队列时二次弹出
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c4f11b5f-dc5e-4941-bbe1-39947963c7c1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ShadowLemoon
ShadowLemoon merged commit 3d7b233 into OneDragon-Anything:refactor/resource-download Aug 11, 2026
8 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants