fix: display banner notification after changing scale#265
fix: display banner notification after changing scale#265deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
|
Hi @52cyb. Thanks for your PR. 😃 |
|
Hi @52cyb. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideConnects to the org.freedesktop.Notifications DBus NotificationClosed signal and resets the stored notification ID when the corresponding scale notification is closed, allowing a new banner to be shown after scale changes again. Sequence diagram for notification reset after scale changesequenceDiagram
actor User
participant DisplayService as org_deepin_dde_Display1
participant AppearanceProxy as AppearanceDBusProxy
participant NotifyService as org_freedesktop_Notifications
User->>DisplayService: Change display scale
DisplayService-->>AppearanceProxy: PropertiesChanged
AppearanceProxy->>NotifyService: Notify scale_change_banner(m_nid)
User->>NotifyService: Click Later button
NotifyService-->>AppearanceProxy: NotificationClosed(id, reason)
AppearanceProxy->>AppearanceProxy: onNotificationClosed(id, reason)
AppearanceProxy->>AppearanceProxy: if id == m_nid then m_nid = 0
User->>DisplayService: Change display scale again
DisplayService-->>AppearanceProxy: PropertiesChanged
AppearanceProxy->>NotifyService: Notify new scale_change_banner(m_nid)
Updated class diagram for AppearanceDBusProxy notification handlingclassDiagram
class AppearanceDBusProxy {
+AppearanceDBusProxy(QObject *parent)
+void setUserInterface(QString userPath)
<<slots>>
-void onDisplayPropertiesChanged(QDBusMessage message)
-void onNotificationClosed(uint id, uint reason)
-- attributes --
-DDBusInterface *m_wmInterface
-uint m_nid
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
After clicking the 'Later' button to turn off the scale notification, reset the replaceId of the notification so that the scale notification can be triggered when the scale is changed again 点击“稍后注销”按钮关闭缩放通知后,重置对应通知的replaceId,使得再次更改缩放后可以触发通知 Log: 点击“稍后注销”按钮关闭缩放通知后,重置对应通知的replaceId PMS: BUG-358697 Influence: 缩放通知关闭后,再次更改缩放后可以触发通知
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 52cyb, mhduiy 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 |
|
/merge |
After clicking the 'Later' button to turn off the scale notification, reset the replaceId of the notification so that the scale notification can be triggered when the scale is changed again
点击“稍后注销”按钮关闭缩放通知后,重置对应通知的replaceId,使得再次更改缩放后可以触发通知
Log: 点击“稍后注销”按钮关闭缩放通知后,重置对应通知的replaceId
PMS: BUG-358697
Influence: 缩放通知关闭后,再次更改缩放后可以触发通知
Summary by Sourcery
Bug Fixes: