gs-application: Change when withdraw possibly obsolete notifications

Milan Crha requested to merge wip/followup-for-m1355 into main

Withdraw possibly obsolete notifications only after the app is registered on the D-Bus, otherwise a runtime warning is shown on the console:

GLib-GIO g_application_get_dbus_connection: assertion 'application->priv->is_registered' failed

This is a follow up fix for !1355 (merged)

I do not know how I could overlook such obvious thing... possibly wrong testing on my side, I'm sorry.

Merge request reports