fix(sni): monitor icon property changes for timely tray icon updates#441
fix(sni): monitor icon property changes for timely tray icon updates#441add-uos wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
Add IconNameChanged and IconPixmapChanged signal handlers to detect icon property changes and ensure timely updates. 添加IconNameChanged和IconPixmapChanged信号处理,监听图标属性变化 并及时更新托盘图标。 Log: 修复SNI图标更新不及时的问题 PMS: BUG-352531 Influence: 修复后托盘图标能够及时响应SNI应用的图标属性变化,提升用户体验。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtends the SNI tray protocol handler to also react to icon name and pixmap property change signals so the tray icon updates promptly when SNI applications change their icon properties. Sequence diagram for updated SNI icon property change handlingsequenceDiagram
participant App
participant StatusNotifierItem
participant SniTrayProtocolHandler
participant TrayUI
App->>StatusNotifierItem: Change icon name or pixmap
StatusNotifierItem-->>SniTrayProtocolHandler: IconNameChanged
SniTrayProtocolHandler->>SniTrayProtocolHandler: iconChanged
SniTrayProtocolHandler-->>TrayUI: Update tray icon
App->>StatusNotifierItem: Change icon pixmap
StatusNotifierItem-->>SniTrayProtocolHandler: IconPixmapChanged
SniTrayProtocolHandler->>SniTrayProtocolHandler: iconChanged
SniTrayProtocolHandler-->>TrayUI: Update tray icon
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码主要是在 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与改进建议这段代码在功能上是正确的,增强了协议处理的完整性。为了进一步优化,建议:
|
Add IconNameChanged and IconPixmapChanged signal handlers to detect icon property changes and ensure timely updates.
添加IconNameChanged和IconPixmapChanged信号处理,监听图标属性变化
并及时更新托盘图标。
Log: 修复SNI图标更新不及时的问题
PMS: BUG-352531
Influence: 修复后托盘图标能够及时响应SNI应用的图标属性变化,提升用户体验。
Summary by Sourcery
Bug Fixes: