Cleanup 1

This commit is contained in:
W2.Wizard
2021-02-21 10:05:47 +01:00
parent 115d6e46a8
commit 52bc268ee7
12 changed files with 126 additions and 67 deletions

View File

@@ -597,8 +597,10 @@ namespace FlaxEditor.GUI.Docking
if (_tabsProxy == null)
{
// Create proxy and make set simple full dock
_tabsProxy = new DockPanelProxy(this);
_tabsProxy.Parent = this;
_tabsProxy = new DockPanelProxy(this)
{
Parent = this
};
_tabsProxy.UnlockChildrenRecursive();
}
}

View File

@@ -496,8 +496,10 @@ namespace FlaxEditor.GUI.Docking
private void ShowContextMenu(DockWindow tab, ref Vector2 location)
{
var menu = new ContextMenu.ContextMenu();
menu.Tag = tab;
var menu = new ContextMenu.ContextMenu
{
Tag = tab
};
tab.OnShowContextMenu(menu);
menu.AddButton("Close", OnTabMenuCloseClicked);
menu.AddButton("Close All", OnTabMenuCloseAllClicked);