Profile editor - Profile tree ordering fixes

Profile editor - Add new layers on top again
Profile editor - Don't willy nilly expand folders
This commit is contained in:
Robert committed 2020-12-10 20:43:03 +01:00
1 parent 9480cf5c32
commit 1b737b4211
6 files changed
+7 -7

No files matched your search

@@ -83,7 +83,7 @@
</ContextMenu>
</TreeView.ContextMenu>
<b:Interaction.Behaviors>
<behaviors:TreeViewSelectionBehavior ExpandSelected="True" SelectedItem="{Binding SelectedTreeItem}" />
<behaviors:TreeViewSelectionBehavior SelectedItem="{Binding SelectedTreeItem}" />
</b:Interaction.Behaviors>
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type treeItem:FolderViewModel}" ItemsSource="{Binding Items}">
@@ -216,7 +216,7 @@ namespace Artemis.UI.Screens.ProfileEditor.ProfileTree.TreeItem
public void PasteElement()
{
if (ProfileElement.Parent is Folder parent)
_profileEditorService.PasteProfileElement(parent, ProfileElement.Order);
_profileEditorService.PasteProfileElement(parent, ProfileElement.Order - 1);
}
public void UpdateProfileElements()