feat: custom toast xml and failure reporting for notifications (#25401)

* allow custom toast xml and report failures

* docs

* tests

* don't use namespaces

* lint doesn't like trailing commas

* addressing feedback
This commit is contained in:
bitdisaster 2020-09-29 12:20:10 -07:00 committed by GitHub
parent d2282ac51a
commit b43859f098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 282 additions and 219 deletions

View file

@ -33,9 +33,9 @@ void Notification::NotificationDismissed() {
Destroy();
}
void Notification::NotificationFailed() {
void Notification::NotificationFailed(const std::string& error) {
if (delegate())
delegate()->NotificationFailed();
delegate()->NotificationFailed(error);
Destroy();
}