Skip to content

[202_112] 增加版本更新的提示#3043

Open
GatsbyUSTC wants to merge 1 commit intomainfrom
hongwei/202_112/add_log_info
Open

[202_112] 增加版本更新的提示#3043
GatsbyUSTC wants to merge 1 commit intomainfrom
hongwei/202_112/add_log_info

Conversation

@GatsbyUSTC
Copy link
Copy Markdown
Collaborator

No description provided.

(tm-define (get-update-download-url)
(:secure #t)
(if (== (get-output-language) "chinese")
"https://liiistem.cn/install.html"
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.

这里应该使用mogan的链接
https://mogan.app/zh/
https://mogan.app/en/

(:secure #t)
(if (== (get-output-language) "chinese")
"https://liiistem.cn/install.html"
"https://liiistem.com/install.html"))
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.

总体评价:功能完整,实现清晰,文档详细。

主要问题:

1. version-update.scm - Debug 代码未移除
(display "Version update history cleared\n")
生产代码中不应有 display 调试输出,建议移除或改为日志函数。

2. qt_tm_widget.cpp - hasMock 布尔判断逻辑有问题
由于 MOCK-REMOTE-VERSION 始终是字符串而非 #f,所以 hasMock 永远为 true,这个条件没有意义。如果想支持 mockVersion 为 #f 时跳过 mock,应该改成:!is_bool (mockVersion)

3. C++ 内存管理
manager 在 lambda 中用 new 创建,虽然最后调用了 deleteLater(),但建议在 reply 的 finished 信号处理中直接 delete manager 更明确。

4. zh_CN.scm - 文件末尾缺换行符

其余代码质量良好,Scheme 部分右括号标记规范,注释清晰。

Copy link
Copy Markdown
Contributor

@MoonL79 MoonL79 left a comment

Choose a reason for hiding this comment

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

PR #3043 Review - [202_112]增加版本更新的提示

功能完整,实现清晰,文档详细。代码质量整体良好。

已在对应行留了具体意见,主要关注点:

  1. version-update.scm 第90行有 debug 用的 (display ...) 未移除
  2. hasMock 布尔判断逻辑有问题(永远为 true)
  3. C++ 内存管理建议更明确
  4. zh_CN.scm 文件末尾缺换行符

Scheme 代码风格规范,右括号标记清晰。

@da-liii da-liii changed the title [202_112]增加版本更新的提示 [202_112] 增加版本更新的提示 Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants