windowAttentionHandler: Don't destroy on open

The activateWindow() call is expected to focus the window, which
already destroys the source. If we then destroy it again explicitly,
we get another "invalid access" warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/430
This commit is contained in:
Florian Müllner 2019-03-02 21:15:03 +01:00
parent 5f2bd70690
commit 26e33ff093

View File

@ -101,6 +101,5 @@ var Source = class WindowAttentionSource extends MessageTray.Source {
open() { open() {
Main.activateWindow(this._window); Main.activateWindow(this._window);
this.destroy();
} }
}; };