更新模组时允许选择目标版本并预览对应更新日志 - #6747
Conversation
Co-authored-by: mimo-v2.5
Co-authored-by: mimo-v2.5
|
这里不需要说“查看其他版本的游戏日志”啊,你直接说这里是“游戏版本”不就行了吗? |
感觉 “游戏版本” 也不太好,应该是 “模组版本” 吧? |
不是模组啊,资源包也可以检查更新的,光影包也有计划做 |
|
你确定这样不会oom吗,我记得 tnt 之前专门把这一堆候选给删掉了,因为会爆内存 以及你为什么要把 remoteVersions 和 remoteVersions.get(0) 都存在 AddonUpdate 里面呢?只存列表不就行了吗? |
当时看 glavo 似乎说错了,写的太快没想太多 🤣 |
“截至最新版本的所有变化” 如何?我暂时没想到其他的 |
直接“其他版本”行不行?或者“选择版本”? 要不顺便做一个让用户自己选择更新到什么版本得了,把“更新日志”那一列改成“其他版本”? 这样 targetVersion 字段也就可以省略了 |
这样就放心了。之前可能是modrinth更新会把更新日志直接拉下来然后就爆炸了,现在延后加载就好了 另外现在这么实现是不是只能看到 mr/cf 一方的版本啊?是否要把两个渠道的所有版本都显示出来,按发布时间排序? |
我觉得可以 😃 |
|
https://github.com/HMCL-dev/HMCL/actions/runs/32983901906/job/98227072480 What is this? What happened? |
Co-authored-by: mimo-v2.5
Co-authored-by: mimo-v2.5
|
@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
When the user selects another target version, the listener updates targetVersionObject and reloads the changelog, but this URL loader is invoked only once during dialog construction. Consequently, the enabled mods.url hyperlink continues opening the initially selected version's page while the table and eventual update point to the newly selected version.
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fcb77e67e
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc50e63e7a
ℹ️ 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".
| RemoteAddon.Version currentVersion = object.targetVersionObject.get(); | ||
| if (currentVersion != null && !currentVersion.versionId().equals(version.versionId())) { | ||
| // Version changed while loading, discard this result. Why's there no 'Task.interrupt()' | ||
| return; |
There was a problem hiding this comment.
Supersede requests instead of comparing only version IDs
When the user selects A → B → A before the first A changelog request completes, both A callbacks pass this version-ID check, so the older request can finish last and overwrite the newer request’s loading/error state—for example, a late failure can hide a successfully rendered changelog behind the retry state. Fresh evidence in this revision is that the stale-result guard identifies only the selected version, not the individual request; track a request generation/task identity so only the most recently started request may update the pane.
Useful? React with 👍 / 👎.


以下演示稍显过时了,现在在选择框里选择版本可以改变实际会更新到的目标版本,文本也有变化。
得益于检查更新时已经收集过所有比当前更加新的模组版本了,最复杂的部分可以跳过,只考虑实现一个界面。
2026-08-26.223311.mp4
语言文件和第一个提交由AI生成。
fixes #6686