Skip to content
Permalink
Browse files

[GameStudio] Asset editors close button is back

  • Loading branch information
xen2 committed Dec 7, 2018
1 parent b498691 commit a006a76566cb00a7579dd592a259cc775c2d4e70
Showing with 2 additions and 1 deletion.
  1. +2 −1 sources/editor/Xenko.GameStudio/AssetEditorsManager.cs
@@ -118,6 +118,7 @@ public void OpenCurveEditorWindow([NotNull] object curve, string name)
{
Content = new CurveEditorView { DataContext = editorViewModel },
Title = "Curve Editor",
CanClose = true,
};

editorPane.Closed += CurveEditorClosed;
@@ -307,7 +308,7 @@ internal async Task OpenAssetEditorWindow([NotNull] AssetViewModel asset, bool s
editorPane = AvalonDockHelper.GetAllAnchorables(dockingLayoutManager.DockingManager).FirstOrDefault(p => p.Title == asset.Url);
if (editorPane == null)
{
editorPane = new LayoutAnchorable();
editorPane = new LayoutAnchorable { CanClose = true };
// Stack the asset in the dictionary of editor to prevent double-opening while double-clicking twice on the asset, since the initialization is async
AvalonDockHelper.GetDocumentPane(dockingLayoutManager.DockingManager).Children.Add(editorPane);
}

0 comments on commit a006a76

Please sign in to comment.
You can’t perform that action at this time.