fix: remove lingering data when notifications autodismiss on Windows 7 (#18401)
This commit is contained in:
parent
0e3ab7c128
commit
0bf83b7183
2 changed files with 12 additions and 2 deletions
|
@ -47,8 +47,12 @@ void Win32Notification::Show(const NotificationOptions& options) {
|
|||
|
||||
if (existing) {
|
||||
existing->tag_.clear();
|
||||
|
||||
this->notification_ref_ = std::move(existing->notification_ref_);
|
||||
this->notification_ref_.Set(options.title, options.msg, image);
|
||||
// Need to remove the entry in the notifications set that
|
||||
// NotificationPresenter is holding
|
||||
existing->Destroy();
|
||||
} else {
|
||||
this->notification_ref_ =
|
||||
presenter->AddNotification(options.title, options.msg, image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue