Merge pull request #1903 from larsbrubaker/master
Make sure we show the z offset if it is set.
This commit is contained in:
commit
db200ea67c
1 changed files with 3 additions and 2 deletions
|
|
@ -355,7 +355,8 @@ namespace MatterHackers.MatterControl.PrinterControls
|
||||||
};
|
};
|
||||||
this.AddChild(zOffsetStreamContainer);
|
this.AddChild(zOffsetStreamContainer);
|
||||||
|
|
||||||
zOffsetStreamDisplay = new TextWidget("0")
|
double zoffset = ActiveSliceSettings.Instance.GetValue<double>(SettingsKey.baby_step_z_offset);
|
||||||
|
zOffsetStreamDisplay = new TextWidget(zoffset.ToString("0.##"))
|
||||||
{
|
{
|
||||||
AutoExpandBoundsToText = true,
|
AutoExpandBoundsToText = true,
|
||||||
TextColor = ActiveTheme.Instance.PrimaryTextColor,
|
TextColor = ActiveTheme.Instance.PrimaryTextColor,
|
||||||
|
|
@ -375,7 +376,7 @@ namespace MatterHackers.MatterControl.PrinterControls
|
||||||
VAnchor = VAnchor.ParentCenter,
|
VAnchor = VAnchor.ParentCenter,
|
||||||
Margin = new BorderDouble(0, 0, 5, 0),
|
Margin = new BorderDouble(0, 0, 5, 0),
|
||||||
ToolTipText = "Clear ZOffset".Localize(),
|
ToolTipText = "Clear ZOffset".Localize(),
|
||||||
Visible = false
|
Visible = zoffset != 0
|
||||||
};
|
};
|
||||||
clearZOffsetButton.Click += (sender, e) =>
|
clearZOffsetButton.Click += (sender, e) =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue