Restore UI for leveling GCode exports

- Issue MatterHackers/MCCentral#2558
Export GCode needs to collect/respect leveling option
This commit is contained in:
John Lewin 2018-02-13 16:02:18 -08:00
parent 10db3aefcc
commit fab8c5da07

View file

@ -34,6 +34,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MatterControl.Printing;
using MatterHackers.Agg;
using MatterHackers.Agg.Image;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
@ -66,7 +67,10 @@ namespace MatterHackers.MatterControl.Library.Export
// If print leveling is enabled then add in a check box 'Apply Leveling During Export' and default checked.
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.print_leveling_enabled))
{
var container = new FlowLayoutWidget();
var container = new FlowLayoutWidget()
{
Margin = new BorderDouble(left: 40, bottom: 10)
};
var checkbox = new CheckBox("Apply leveling to G-Code during export".Localize(), ActiveTheme.Instance.PrimaryTextColor, 10)
{
@ -77,7 +81,7 @@ namespace MatterHackers.MatterControl.Library.Export
{
this.ApplyLeveling = checkbox.Checked;
};
//container.AddChild(checkbox);
container.AddChild(checkbox);
return container;
}