From 901eae59dae09f6d9e721ec39cf07726b289ed5a Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 19 Jul 2012 14:38:31 +0200 Subject: [PATCH] Workaround for #160, as on MacOS you seem to be able to press the jog buttons during printing. --- Cura/gui/printWindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 82898195..274d6bff 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -68,6 +68,8 @@ class PrintCommandButton(buttons.GenBitmapButton): self.Bind(wx.EVT_BUTTON, self.OnClick) def OnClick(self, e): + if self.parent.printIdx != None: + return; self.parent.sendCommand("G91") self.parent.sendCommand(self.command) self.parent.sendCommand("G90") -- 2.30.2