Add ResizableSectionWidget expansion persistence
This commit is contained in:
parent
5c1a453a75
commit
d5d8f000f8
4 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue