Add ResizableSectionWidget expansion persistence

This commit is contained in:
John Lewin 2018-06-23 08:00:15 -07:00
parent 5c1a453a75
commit d5d8f000f8
4 changed files with 5 additions and 4 deletions

View file

@ -207,7 +207,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
};
var treeSection = new ResizableSectionWidget("Design History".Localize(), sceneContext.ViewState.SceneTreeHeight, treeView, theme, expanded: false);
var treeSection = new ResizableSectionWidget("Design History".Localize(), sceneContext.ViewState.SceneTreeHeight, treeView, theme, serializationKey: UserSettingsKey.SelectionTreeViewPanelExpanded);
treeSection.Resized += (s, e) =>
{
sceneContext.ViewState.SceneTreeHeight = treeSection.ResizeContainer.Height;