diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-10-15 04:42:23 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-10-15 04:42:23 +0300 |
commit | 5cc29e8d51dfdf7801ad03a58d83aec6f7138b6f (patch) | |
tree | 7c82323040925cae096e7eed67d13df16e93b118 /UVtools.GUI | |
parent | 89f5df35a877b146ad6ba05585a82ad9d39752e8 (diff) |
WPF Calculator
Diffstat (limited to 'UVtools.GUI')
-rw-r--r-- | UVtools.GUI/Controls/Tools/CtrlToolCalculator.cs | 1 | ||||
-rw-r--r-- | UVtools.GUI/FrmMain.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/UVtools.GUI/Controls/Tools/CtrlToolCalculator.cs b/UVtools.GUI/Controls/Tools/CtrlToolCalculator.cs index 5b9f050..a98ae7a 100644 --- a/UVtools.GUI/Controls/Tools/CtrlToolCalculator.cs +++ b/UVtools.GUI/Controls/Tools/CtrlToolCalculator.cs @@ -191,6 +191,7 @@ namespace UVtools.GUI.Controls.Tools { Program.SlicerFile.BottomLiftHeight = (float)Operation.CalcLightOffDelay.BottomLiftHeight; Program.SlicerFile.BottomLiftSpeed = (float)Operation.CalcLightOffDelay.BottomLiftSpeed; + Program.SlicerFile.RetractSpeed = (float)Operation.CalcLightOffDelay.RetractSpeed; Program.SlicerFile.BottomLayerOffTime = (float)Operation.CalcLightOffDelay.BottomLightOffDelay; Program.FrmMain.CanSave = true; lbLightOffDelayCurrentBottomValue.Text = $"Current value: {Program.SlicerFile.BottomLayerOffTime}"; diff --git a/UVtools.GUI/FrmMain.cs b/UVtools.GUI/FrmMain.cs index dba1c02..056cfb5 100644 --- a/UVtools.GUI/FrmMain.cs +++ b/UVtools.GUI/FrmMain.cs @@ -2296,7 +2296,7 @@ namespace UVtools.GUI /// <summary> /// Reshow current layer /// </summary> - void ShowLayer() => ShowLayer(Math.Min(ActualLayer, SlicerFile.LayerCount - 1)); + void ShowLayer() => ShowLayer(Math.Min(ActualLayer, SlicerFile.LastLayerIndex)); void ShowLayer(bool direction) { |