mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
panelMenu: Destroy menu before chaining up
This avoid some (harmless but annoying) warnings, and is closer to the original code prior to commitfc342fe8c5and557b232c89. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3022
This commit is contained in:
parent
260405a49e
commit
1812db7aa8
1 changed files with 1 additions and 2 deletions
|
|
@ -183,10 +183,9 @@ var Button = GObject.registerClass({
|
|||
}
|
||||
|
||||
_onDestroy() {
|
||||
super._onDestroy();
|
||||
|
||||
if (this.menu)
|
||||
this.menu.destroy();
|
||||
super._onDestroy();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue