Skip to content

fix: 切换版本隔离设置后自动刷新其他子页面 功能失效#6468

Merged
Glavo merged 5 commits into
HMCL-dev:mainfrom
CiiLu:h
Jul 22, 2026
Merged

fix: 切换版本隔离设置后自动刷新其他子页面 功能失效#6468
Glavo merged 5 commits into
HMCL-dev:mainfrom
CiiLu:h

Conversation

@CiiLu

@CiiLu CiiLu commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the 10+ label Jul 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates imports in GameSettingsPage.java and adds code to fire a WorkingDirChangedEvent when toggling the instance isolation button. The reviewer suggested a more robust and centralized approach: instead of manually firing the event in bindInstanceIsolationButton, a listener should be added to the resolved running directory path (textProperty) in bindRunningDirectoryProperty to handle all scenarios where the working directory changes.

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.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/game/GameSettingsPage.java Outdated
@Glavo

Glavo commented Jul 21, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 751954f9e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".


textProperty.addListener((observable, oldValue, newValue) -> {
if (!Objects.equals(oldValue, newValue)) {
FXUtils.runInFX(() -> fireEvent(new VersionPage.WorkingDirChangedEvent()));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

为什么要 runInFX?不要到处乱放 runInFX,这些属性变化本来就发生在 FX 线程上,不应该用 runInFX

@Glavo

Glavo commented Jul 22, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f65b7c8ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/game/GameSettingsPage.java Outdated
@Glavo

Glavo commented Jul 22, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 194ba70302

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Glavo
Glavo merged commit b81c339 into HMCL-dev:main Jul 22, 2026
3 checks passed
@CiiLu
CiiLu deleted the h branch July 24, 2026 14:39
Glavo added a commit that referenced this pull request Jul 25, 2026
#6468

Co-authored-by: 辞庐 <109708109+CiiLu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants