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