[gnome-software/859-app-has-been-installed-notifications-sit-around-indefinitely] gs-application: Remove possibly obsolete notifications on start



commit 4ce5e361bb58a34c7f202d4eee2006d0aa4ff8f1
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 13 09:57:21 2022 +0200

    gs-application: Remove possibly obsolete notifications on start
    
    Remove any possibly obsolete notifications from the last run, in case
    there left any such.

 src/gs-application.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index e3f5f55c7..5b71efecb 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -150,6 +150,8 @@ gs_application_init (GsApplication *application)
        };
 
        g_application_add_main_option_entries (G_APPLICATION (application), options);
+
+       gs_utils_withdraw_notifications (G_APPLICATION (application));
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]