window: Don’t hide undo notifications after destruction
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)