From b11dbf2d2c90f75395188066c55307178951cfa1 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Thu, 1 Sep 2022 11:31:37 -0700 Subject: [PATCH] Disable re-slice button on loaded g-code - Fix #5248 --- MatterControlLib/PartPreviewWindow/PrinterTabPage.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs b/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs index 928da4b1f..46b6a0d6b 100644 --- a/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs +++ b/MatterControlLib/PartPreviewWindow/PrinterTabPage.cs @@ -763,7 +763,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow bottomRow.AddChild(timeContainer); // we can only reslice on 64 bit, because in 64 bit we always have the gcode loaded - if (IntPtr.Size == 8 || ApplicationController.Instance.Allow32BitReSlice) + if ((IntPtr.Size == 8 || ApplicationController.Instance.Allow32BitReSlice) + // Reslice is not applicable on standalone gcode files + && !printer.Bed.EditContext.FreezeGCode) { var resliceButton = new ThemedTextButton("Re-Slice", theme) {