修复 GameAdvancedListItem#loadVersion UI 操作可能不会 JavaFX 线程运行的问题#6445
Conversation
There was a problem hiding this comment.
Code Review
This pull request wraps the UI update logic in GameAdvancedListItem.loadVersion() inside Platform.runLater to ensure it runs on the JavaFX Application Thread. The reviewer suggests using the project's utility method FXUtils.runInFX instead of Platform.runLater to avoid unnecessary thread dispatching when already on the FX thread, which also eliminates the need for the new import. Additionally, the reviewer points out potential concurrency issues with the rest of the method that is still executed outside the FX thread.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
| setLeftGraphic(imageContainer); | ||
|
|
||
| holder.add(FXUtils.onWeakChangeAndOperate(GameDirectoryManager.selectedInstanceProperty(), it -> this.loadVersion())); | ||
| holder.add(FXUtils.onWeakChangeAndOperate(GameDirectoryManager.selectedInstanceProperty(), it -> FXUtils.runInFX(this::loadVersion))); |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
resolves #6443
附来自崩溃群 & 用户群的完整报告