window: Don’t hide undo notifications after destruction

Ghost User requested to merge wip/ernestask/undo-notification-timeout into master

In-app undo notifications are removed after a timeout, regardless of whether the window is alive or not, which can cause criticals to be thrown. Removing the event source before chaining up in the destroy() vfunc fixes this.

Fixes #1026 (closed)

Merge request reports