Skip to content

messageTray: Only destroy policy after emitting ::destroy

Destroying the policy invalidates it, so accessing it from a Source::destroy handler (for example to disconnect signal handlers) currently results in warnings like:

Object .Gjs_ui_messageTray_NotificationApplicationPolicy (0x7f8c7c0a64a0), has been already deallocated — impossible to access it.

Fixes #2238 (closed)

Edited by Florian Müllner

Merge request reports