fix: 初次进入新增游戏目录页面不会自动填充 .minecraft 上级目录名称 - #6764
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68422cb553
ℹ️ 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".
| txtGameDirectoryName.setText(suggestedName); | ||
| } | ||
| }; | ||
| locationChangeListener.changed(null, this.location.get(), this.location.get()); |
There was a problem hiding this comment.
Preserve existing names when initializing the suggestion
When this page is constructed with a non-null directory whose path ends in .minecraft, this unconditional callback replaces the existing gameDirectoryDisplayName already placed in the text field with the parent folder name. For example, editing a directory named Work at /games/foo/.minecraft immediately changes the field to foo, and saving persists that unintended rename; run the initial suggestion only when creating a new entry.
Useful? React with 👍 / 👎.
No description provided.