From 6615d699852d9dfc3d6dd9f8efffdb7cf44b4b2f Mon Sep 17 00:00:00 2001 From: Jonian Guveli Date: Sun, 31 Dec 2023 20:30:11 +0200 Subject: [PATCH] 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: --- js/ui/appMenu.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/appMenu.js b/js/ui/appMenu.js index e3825a81e..1569aa6ce 100644 --- a/js/ui/appMenu.js +++ b/js/ui/appMenu.js @@ -199,9 +199,8 @@ export class AppMenu extends PopupMenu.PopupMenu { /** */ destroy() { - super.destroy(); - this.setApp(null); + super.destroy(); } /**