fix: valueChanged can't be emitted when DConfig's thread released#469
Closed
18202781743 wants to merge 1 commit intolinuxdeepin:masterfrom
Closed
fix: valueChanged can't be emitted when DConfig's thread released#46918202781743 wants to merge 1 commit intolinuxdeepin:masterfrom
18202781743 wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Apr 18, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#469
zccrs
requested changes
Apr 28, 2025
Member
|
代码审查报告: 1. 代码质量
2. 潜在问题
3. 最佳实践
4. 性能考虑
5. 安全性
改进建议
总体评价代码变更逻辑清晰,解决了信号连接和线程管理的问题,符合 Qt 框架的使用习惯。存在一些潜在问题(如 |
Member
AI都发现了不少问题 |
1. Removed owner->q_func() from DSGConfigManager constructor as it's not needed 2. Moved config object to global thread for better thread safety 3. Modified signal connection to use lambda for proper thread context 4. Added more robust error handling for invalid config cases fix: 改进 DConfig 的 DBus 连接处理 1. 从 DSGConfigManager 构造函数中移除不必要的 owner->q_func() 参数 2. 将配置对象移动到全局线程以提高线程安全性 3. 修改信号连接使用 lambda 保证正确的线程上下文 4. 为无效配置情况添加更健壮的错误处理
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Apr 30, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#469
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
May 6, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#469
Contributor
deepin pr auto review关键摘要:
是否建议立即修改:
|
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
May 6, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#469
zccrs
requested changes
May 6, 2025
Member
zccrs
left a comment
There was a problem hiding this comment.
这个改动就不要做了,1并不是dtk的问题,2是这样改了后代码就很难看懂了。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
not needed
fix: 改进 DConfig 的 DBus 连接处理