Remove separator border from last row in group
This commit is contained in:
parent
2340ae872e
commit
f754ffb8cc
1 changed files with 9 additions and 1 deletions
|
|
@ -512,6 +512,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||||
|
|
||||||
HorizontalLine lastLine = null;
|
HorizontalLine lastLine = null;
|
||||||
|
|
||||||
|
GuiWidget settingsRow = null;
|
||||||
|
|
||||||
foreach (SliceSettingData settingData in subGroup.Settings)
|
foreach (SliceSettingData settingData in subGroup.Settings)
|
||||||
{
|
{
|
||||||
// Note: tab sections may disappear if / when they are empty, as controlled by:
|
// Note: tab sections may disappear if / when they are empty, as controlled by:
|
||||||
|
|
@ -521,7 +523,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||||
if (EngineMappingsMatterSlice.Instance.MapContains(settingData.SlicerConfigName)
|
if (EngineMappingsMatterSlice.Instance.MapContains(settingData.SlicerConfigName)
|
||||||
&& settingShouldBeShown)
|
&& settingShouldBeShown)
|
||||||
{
|
{
|
||||||
var settingsRow = CreateItemRow(settingData);
|
settingsRow = CreateItemRow(settingData);
|
||||||
|
|
||||||
this.settingsRows.Add((settingsRow, settingData));
|
this.settingsRows.Add((settingsRow, settingData));
|
||||||
|
|
||||||
|
|
@ -529,6 +531,12 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide border on last item in group
|
||||||
|
if (settingsRow != null)
|
||||||
|
{
|
||||||
|
settingsRow.BorderColor = Color.Transparent;
|
||||||
|
}
|
||||||
|
|
||||||
lastLine?.Close();
|
lastLine?.Close();
|
||||||
|
|
||||||
return (topToBottomSettings.Children.Count == 1) ? null : topToBottomSettings;
|
return (topToBottomSettings.Children.Count == 1) ? null : topToBottomSettings;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue