From: daid Date: Thu, 19 Jul 2012 12:38:31 +0000 (+0200) Subject: Workaround for #160, as on MacOS you seem to be able to press the jog buttons during... X-Git-Tag: 12.08~29 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=901eae59dae09f6d9e721ec39cf07726b289ed5a;p=cura.git Workaround for #160, as on MacOS you seem to be able to press the jog buttons during printing. --- 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")