-
Notifications
You must be signed in to change notification settings - Fork 55
fix: update connection for active window icon change #1197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
当前有多个源头触发 iconChanged: AppItem::currentActiveWindowChanged 和 DesktopfileAbstractParser::iconChanged。这会导致 iconName 的 loop binding。此修改将其中一个调整为 QueuedConnection 来避免循环绑定。 Log:
Reviewer's GuideThis patch resolves a recursive iconChanged binding by converting the direct signal-slot connection on AbstractWindow to a queued connection, preventing warning loops. Sequence diagram for iconChanged signal-slot connection updatesequenceDiagram
participant AppItem
participant AbstractWindow
note over AppItem,AbstractWindow: Before: Direct connection (default)
AppItem->>AbstractWindow: connect(iconChanged, iconChanged)
AbstractWindow-->>AppItem: iconChanged (direct)
note over AppItem,AbstractWindow: After: Queued connection
AppItem->>AbstractWindow: connect(iconChanged, iconChanged, QueuedConnection)
AbstractWindow--x AppItem: iconChanged (queued)
Class diagram for AppItem and AbstractWindow signal-slot relationshipclassDiagram
class AppItem {
+updateCurrentActiveWindow(window)
+iconChanged()
+currentActiveWindowChanged()
-m_currentActiveWindow
}
class AbstractWindow {
+iconChanged()
}
AppItem o-- AbstractWindow : m_currentActiveWindow
AppItem ..> AbstractWindow : connect iconChanged (now QueuedConnection)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review关键摘要:
是否建议立即修改:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia 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 |
当前有多个源头触发 iconChanged: AppItem::currentActiveWindowChanged 和 DesktopfileAbstractParser::iconChanged。这会导致 iconName 的 loop binding。此修改将其中一个调整为 QueuedConnection 来避免循环绑定。
(注:是在尝试排查和修复其他 bug 时进行的修复,但发现这个修正并没有解决原本目标要解决的bug,只解决了这个警告)
Summary by Sourcery
Bug Fixes: