making design tabs save width

This commit is contained in:
LarsBrubaker 2020-06-07 23:09:01 -07:00
parent f97e367120
commit 2fafdccae5
6 changed files with 25 additions and 28 deletions

View file

@ -167,25 +167,6 @@ namespace MatterHackers.MatterControl
}
}
public double SelectedObjectPanelWidth
{
get
{
if (double.TryParse(UserSettings.Instance.get(UserSettingsKey.SelectedObjectPanelWidth), out double controlWidth))
{
return Math.Max(controlWidth, 150);
}
return 200;
}
set
{
var minimumValue = Math.Max(value, 150);
UserSettings.Instance.set(UserSettingsKey.SelectedObjectPanelWidth, minimumValue.ToString());
}
}
public bool SlicingItem { get; set; }
}
}