Inline temporary variable

This commit is contained in:
John Lewin 2018-06-24 10:34:09 -07:00
parent 615774eba1
commit 8b40098660

View file

@ -91,12 +91,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.AddChild(new PrinterConnectButton(printer, theme));
this.AddChild(new PrintButton(printerTabPage, printer, theme));
var sliceButton = new SliceButton(printer, printerTabPage, theme)
this.AddChild(new SliceButton(printer, printerTabPage, theme)
{
Name = "Generate Gcode Button",
Margin = theme.ButtonSpacing,
};
this.AddChild(sliceButton);
});
// Add vertical separator
this.AddChild(new ToolbarSeparator(theme)