appMenu: Move setApp to null before destroy

Calling `setApp` after the menu has been destroyed results in error.
Moving the method before `super.destroy()` fixes the issue.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2998>
This commit is contained in:
Jonian Guveli 2023-12-31 20:30:11 +02:00
parent 1dda339395
commit 6615d69985

View File

@ -199,9 +199,8 @@ export class AppMenu extends PopupMenu.PopupMenu {
/** */
destroy() {
super.destroy();
this.setApp(null);
super.destroy();
}
/**