fix: reply notifs sometimes destroyed too early (#25086)
* fix: reply notifs sometimes destroyed too early * Fix windows build
This commit is contained in:
parent
a23c66e4e1
commit
bea6c9e4e1
4 changed files with 10 additions and 5 deletions
|
@ -21,10 +21,12 @@ Notification::~Notification() {
|
|||
delegate()->NotificationDestroyed();
|
||||
}
|
||||
|
||||
void Notification::NotificationClicked() {
|
||||
void Notification::NotificationClicked(bool should_destroy) {
|
||||
if (delegate())
|
||||
delegate()->NotificationClick();
|
||||
Destroy();
|
||||
|
||||
if (should_destroy)
|
||||
Destroy();
|
||||
}
|
||||
|
||||
void Notification::NotificationDismissed() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue