mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
v2.14.3
- (Add) Exposure time finder: Base layers print modes, a option to speed up the print process and merge all base layers in the same height - (Add) GCode tab: Allow to temporarily edit and use custom gcode - (Change) Zcode: Omit M18 at end of the gcode to prevent carrier goes up and crash to the limit at a end of a print
This commit is contained in:
@@ -19,15 +19,16 @@ namespace UVtools.WPF
|
||||
{
|
||||
public bool HaveGCode => IsFileLoaded && SlicerFile.SupportsGCode;
|
||||
|
||||
public string GCodeStr => SlicerFile?.GCodeStr;
|
||||
public uint GCodeLines => !HaveGCode ? 0 : SlicerFile.GCode.LineCount;
|
||||
|
||||
public void OnClickRebuildGcode()
|
||||
{
|
||||
if (!HaveGCode) return;
|
||||
var temp = SlicerFile.SuppressRebuildGCode;
|
||||
SlicerFile.SuppressRebuildGCode = false;
|
||||
SlicerFile.RebuildGCode();
|
||||
SlicerFile.SuppressRebuildGCode = temp;
|
||||
RaisePropertyChanged(nameof(GCodeLines));
|
||||
RaisePropertyChanged(nameof(GCodeStr));
|
||||
|
||||
CanSave = true;
|
||||
}
|
||||
@@ -69,7 +70,7 @@ namespace UVtools.WPF
|
||||
public void OnClickGCodeSaveClipboard()
|
||||
{
|
||||
if (!HaveGCode) return;
|
||||
Application.Current.Clipboard.SetTextAsync(GCodeStr);
|
||||
Application.Current.Clipboard.SetTextAsync(SlicerFile.GCodeStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user