Workaround for #160, as on MacOS you seem to be able to press the jog buttons during printing.
This commit is contained in:
parent
16c8c4f588
commit
901eae59da
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue