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:
parent
1dda339395
commit
6615d69985
@ -199,9 +199,8 @@ export class AppMenu extends PopupMenu.PopupMenu {
|
||||
|
||||
/** */
|
||||
destroy() {
|
||||
super.destroy();
|
||||
|
||||
this.setApp(null);
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user