From 6d89d0d9cbf658b566bb8dbe81b2fd2ecd080a1b Mon Sep 17 00:00:00 2001 From: Amethyst-szs Date: Mon, 27 Jan 2025 09:16:48 -0800 Subject: [PATCH] Fix auto-closing msbt containers on delete --- .../editor/msbt/list/container/EntryListBase.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/MoonFlow/scene/editor/msbt/list/container/EntryListBase.cs b/MoonFlow/scene/editor/msbt/list/container/EntryListBase.cs index 8f4e0cd..050eaf3 100644 --- a/MoonFlow/scene/editor/msbt/list/container/EntryListBase.cs +++ b/MoonFlow/scene/editor/msbt/list/container/EntryListBase.cs @@ -197,15 +197,21 @@ private void UpdateDropdownMenuContainers() if (child.GetType() != typeof(MarginContainer)) continue; + // Attempt to find dropdown button connected to this margin var margin = child as MarginContainer; - margin.Hide(); - if (!margin.HasMeta("dropdown")) continue; + // Update visibility on dropdown button var dropdown = margin.GetMeta("dropdown").As