Skip to content

Commit

Permalink
[GameStudio] Asset editors close button is back
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Dec 7, 2018
1 parent b498691 commit a006a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/editor/Xenko.GameStudio/AssetEditorsManager.cs
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit a006a76

Please sign in to comment.