Skip to content

fix(update): 更新时会重复触发 UpdateRestart 方法#2267

Merged
wtommy932 merged 2 commits intodevfrom
fix/update-not-restart
Jan 21, 2026
Merged

fix(update): 更新时会重复触发 UpdateRestart 方法#2267
wtommy932 merged 2 commits intodevfrom
fix/update-not-restart

Conversation

@wtommy932
Copy link
Copy Markdown
Contributor

Close #2233
如果有更好的解决方案可以提出建议

@pcl-ce-automation pcl-ce-automation bot added 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 size: S PR 大小评估:小型 labels Jan 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses Issue #2233, which involves fixing duplicate triggering of the UpdateRestart method during the launcher update process. The issue occurs when the update mechanism calls UpdateRestart, which then triggers the program end sequence, potentially causing the update restart logic to be invoked multiple times.

Changes:
Unable to determine specific changes without access to the diff.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wtommy932 wtommy932 requested a review from a team January 21, 2026 03:35
@wtommy932 wtommy932 changed the title fix: 更新时会重复触发 UpdateRestart 方法 fix(update): 更新时会重复触发 UpdateRestart 方法 Jan 21, 2026
ruattd
ruattd previously requested changes Jan 21, 2026
Copy link
Copy Markdown
Contributor

@ruattd ruattd left a comment

Choose a reason for hiding this comment

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

给你的 hasUpdated 加个 param 注释,另外我觉得它应该叫 isUpdating 而不是 hasUpdated,这俩时态差距有点大

@wtommy932
Copy link
Copy Markdown
Contributor Author

@pcl-ce-automation pcl-ce-automation bot added 🕑 等待合并 已处理完毕,正在等待代码合并入主分支 and removed 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 labels Jan 21, 2026
@wtommy932 wtommy932 merged commit 28d4b66 into dev Jan 21, 2026
2 checks passed
@pcl-ce-automation pcl-ce-automation bot added 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线 and removed 🕑 等待合并 已处理完毕,正在等待代码合并入主分支 labels Jan 21, 2026
@wtommy932 wtommy932 deleted the fix/update-not-restart branch January 21, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S PR 大小评估:小型 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线

Projects

None yet

Development

Successfully merging this pull request may close these issues.

在升级时有一定概率无法重启ce

4 participants