Move firstRow designation from subgroup to group
- Issue MatterHackers/MCCentral#3127 Missing slice setting row borders after first/last row modifications
This commit is contained in:
parent
40918afe82
commit
34fcf9e7f7
1 changed files with 4 additions and 3 deletions
|
|
@ -448,9 +448,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
var sectionWidget = new SectionWidget(group.Name.Localize(), groupPanel, theme, serializationKey: userSettingsKey).ApplyBoxStyle();
|
||||
|
||||
bool firstRow = true;
|
||||
|
||||
foreach (var subGroup in group.SubGroups)
|
||||
{
|
||||
var subGroupPanel = this.AddSettingRowsForSubgroup(subGroup);
|
||||
var subGroupPanel = this.AddSettingRowsForSubgroup(subGroup, ref firstRow);
|
||||
if (subGroupPanel != null)
|
||||
{
|
||||
groupPanel.AddChild(subGroupPanel);
|
||||
|
|
@ -460,7 +462,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
return sectionWidget;
|
||||
}
|
||||
|
||||
private GuiWidget AddSettingRowsForSubgroup(SettingsOrganizer.SubGroup subGroup)
|
||||
private GuiWidget AddSettingRowsForSubgroup(SettingsOrganizer.SubGroup subGroup, ref bool firstRow)
|
||||
{
|
||||
var topToBottomSettings = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
{
|
||||
|
|
@ -468,7 +470,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
};
|
||||
|
||||
GuiWidget settingsRow = null;
|
||||
bool firstRow = true;
|
||||
|
||||
foreach (SliceSettingData settingData in subGroup.Settings)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue