panelMenu: Destroy menu before chaining up

This avoid some (harmless but annoying) warnings, and is closer to
the original code prior to commit fc342fe8c5 and 557b232c89.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3022
This commit is contained in:
Florian Müllner 2020-07-28 18:52:53 +02:00
parent a3d2cfa503
commit 51537cf31c

View File

@ -183,10 +183,9 @@ var Button = GObject.registerClass({
} }
_onDestroy() { _onDestroy() {
super._onDestroy();
if (this.menu) if (this.menu)
this.menu.destroy(); this.menu.destroy();
super._onDestroy();
} }
}); });