[geary/wip/766133-gnotification: 13/13] Ensure notifications are cleared on app activation
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/766133-gnotification: 13/13] Ensure notifications are cleared on app activation
- Date: Sun, 14 Apr 2019 12:04:34 +0000 (UTC)
commit c95aac5b4663c65daa14735c2b74252073a61105
Author: Michael Gratton <mike vee net>
Date: Sun Apr 14 21:40:03 2019 +1000
Ensure notifications are cleared on app activation
src/client/application/geary-application.vala | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index 37ed88b8..7aff07ae 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -413,8 +413,11 @@ public class GearyApplication : Gtk.Application {
public override void activate() {
base.activate();
- if (!present())
- create_async.begin();
+ this.controller.notifications.clear_arrived_notification();
+ this.controller.notifications.clear_error_notification();
+ if (!present()) {
+ this.create_async.begin();
+ }
}
public bool present() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]