[gnome-shell/gnome-3-36] panelMenu: Destroy menu before chaining up
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] panelMenu: Destroy menu before chaining up
- Date: Tue, 11 Aug 2020 20:42:09 +0000 (UTC)
commit 51537cf31c7f6589635852629bd7f0549175515e
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 28 18:52:53 2020 +0200
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 557b232c896.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3022
js/ui/panelMenu.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js
index a5b0896c4f..274daa7eaa 100644
--- a/js/ui/panelMenu.js
+++ b/js/ui/panelMenu.js
@@ -183,10 +183,9 @@ var Button = GObject.registerClass({
}
_onDestroy() {
- super._onDestroy();
-
if (this.menu)
this.menu.destroy();
+ super._onDestroy();
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]