Skip to content

[0502] 修复 is_community 切换无法控制教程开关的问题 - #3933

Merged
da-liii merged 1 commit into
mainfrom
cms/0502/fix
Jul 13, 2026
Merged

[0502] 修复 is_community 切换无法控制教程开关的问题#3933
da-liii merged 1 commit into
mainfrom
cms/0502/fix

Conversation

@MoonL79

@MoonL79 MoonL79 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

[200_56] PR #3245 把 tutorial option 的默认值改成由 is_community 推导, 但 enable_tutorial 局部变量在 option 注册阶段被冻结,has_config 读的是 陈旧缓存,导致 USE_TUTORIAL 永远为 1,社区版也无法关闭教程。

去掉 tutorial option 中间层,让 USE_TUTORIAL 在 target 配置阶段直接由 not has_config("is_community") 推导,命令行 --is_community=true/false 能正确控制教程开关。

[200_56] PR #3245 把 tutorial option 的默认值改成由 is_community 推导,
但 enable_tutorial 局部变量在 option 注册阶段被冻结,has_config 读的是
陈旧缓存,导致 USE_TUTORIAL 永远为 1,社区版也无法关闭教程。

去掉 tutorial option 中间层,让 USE_TUTORIAL 在 target 配置阶段直接由
not has_config("is_community") 推导,命令行 --is_community=true/false
能正确控制教程开关。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@MoonL79 MoonL79 self-assigned this Jul 13, 2026

@da-liii da-liii 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.

LGTM

@da-liii
da-liii merged commit 8483b16 into main Jul 13, 2026
5 checks passed
@da-liii
da-liii deleted the cms/0502/fix branch July 13, 2026 11:43
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.

2 participants