Cleanup 1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user