Fix "QMenu was null when calling clear" error (#3516)

Co-authored-by: trende2001 <68961063+trende2001@users.noreply.github.com>
This commit is contained in:
sboxbot
2025-12-01 10:28:13 +00:00
committed by GitHub
parent abfa79f610
commit 95a575e1c4

View File

@@ -386,11 +386,14 @@ namespace Editor
public void Clear()
{
if ( _menu.IsNull )
return;
_menu.clear();
Menus.Clear();
Options.Clear();
_widgets.Clear();
Menus?.Clear();
Options?.Clear();
_widgets?.Clear();
}
Option lastActive;