chiark / gitweb /
Workaround for #160, as on MacOS you seem to be able to press the jog buttons during...
authordaid <daid303@gmail.com>
Thu, 19 Jul 2012 12:38:31 +0000 (14:38 +0200)
committerdaid <daid303@gmail.com>
Thu, 19 Jul 2012 12:38:31 +0000 (14:38 +0200)
Cura/gui/printWindow.py

index 828981952af5fa6530494ccdaaa1454fcfe2f9c4..274d6bff12f7ce91252629b67340337b1705cf3c 100644 (file)
@@ -68,6 +68,8 @@ class PrintCommandButton(buttons.GenBitmapButton):
                self.Bind(wx.EVT_BUTTON, self.OnClick)\r
 \r
        def OnClick(self, e):\r
+               if self.parent.printIdx != None:\r
+                       return;\r
                self.parent.sendCommand("G91")\r
                self.parent.sendCommand(self.command)\r
                self.parent.sendCommand("G90")\r