Remove classic 'Setup...' button
This commit is contained in:
parent
8453809606
commit
2513cc6313
1 changed files with 0 additions and 32 deletions
|
|
@ -316,38 +316,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
return errorsContainer;
|
||||
}
|
||||
|
||||
/*
|
||||
// put in setup if needed
|
||||
if (printerNeedsToRunSetup && printerIsConnected)
|
||||
{
|
||||
// add the finish setup button
|
||||
var finishSetupButton = new TextButton("Setup...".Localize(), theme)
|
||||
{
|
||||
Name = "Finish Setup Button",
|
||||
ToolTipText = "Run setup configuration for printer.".Localize(),
|
||||
Margin = theme.ButtonSpacing,
|
||||
Enabled = printerReadyToTakeCommands,
|
||||
HAnchor = HAnchor.Right,
|
||||
VAnchor = VAnchor.Absolute,
|
||||
};
|
||||
theme.ApplyPrimaryActionStyle(finishSetupButton);
|
||||
finishSetupButton.Click += (s, e) =>
|
||||
{
|
||||
UiThread.RunOnIdle(async () =>
|
||||
{
|
||||
await ApplicationController.Instance.PrintPart(
|
||||
printer.Bed.EditContext,
|
||||
printer,
|
||||
null,
|
||||
CancellationToken.None);
|
||||
});
|
||||
|
||||
this.CloseMenu();
|
||||
};
|
||||
column.AddChild(finishSetupButton);
|
||||
}
|
||||
*/
|
||||
|
||||
return printPanel;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue