Blame SOURCES/0001-fileItem-Just-destroy-menus.patch

f60408
From 506c6d69eaa5e056d9580a28e9c200586b0e1fb0 Mon Sep 17 00:00:00 2001
f60408
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
f60408
Date: Fri, 2 Dec 2022 15:20:40 +0100
f60408
Subject: [PATCH] fileItem: Just destroy menus
f60408
f60408
The menu manager is smart enough to remove the menu automatically,
f60408
and the actor will be destroyed alongside the menu. Not doing those
f60408
actions explicitly allows the automatic handling to proceed without
f60408
confusing the grab state.
f60408
---
f60408
 extensions/desktop-icons/fileItem.js | 4 ----
f60408
 1 file changed, 4 deletions(-)
f60408
f60408
diff --git a/extensions/desktop-icons/fileItem.js b/extensions/desktop-icons/fileItem.js
f60408
index 44a93352..f2f03440 100644
f60408
--- a/extensions/desktop-icons/fileItem.js
f60408
+++ b/extensions/desktop-icons/fileItem.js
f60408
@@ -575,10 +575,6 @@ var FileItem = class {
f60408
 
f60408
     _removeMenu() {
f60408
         if (this._menu != null) {
f60408
-            if (this._menuManager != null)
f60408
-                this._menuManager.removeMenu(this._menu);
f60408
-
f60408
-            Main.layoutManager.uiGroup.remove_child(this._menu.actor);
f60408
             this._menu.destroy();
f60408
             this._menu = null;
f60408
         }
f60408
-- 
f60408
2.38.1
f60408