Add Calibrate Printer menu item

This commit is contained in:
jlewin 2019-05-14 13:02:11 -07:00
parent 046350fc29
commit 2d4f3a4784

View file

@ -303,7 +303,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
SetIsActive = (value) => printer.ViewState.ControlsVisible = value
},
new NamedBoolAction()
{
{
Title = "Show Terminal".Localize(),
Action = () => { },
GetIsActive = () => printer.ViewState.TerminalVisible,
@ -343,6 +343,20 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
Icon = AggContext.StaticData.LoadIcon("cube_export.png", 16, 16, theme.InvertIcons),
},
new ActionSeparator(),
new NamedAction()
{
Title = "Calibrate Printer".Localize(),
Action = () => UiThread.RunOnIdle(() =>
{
UiThread.RunOnIdle(() =>
{
DialogWindow.Show(new PrinterCalibrationWizard(printer, theme));
});
}),
Icon = AggContext.StaticData.LoadIcon("fa-cog_16.png", theme.InvertIcons)
},
new ActionSeparator(),
new NamedAction()
{
Title = "Restore Settings".Localize(),