mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 18:40:44 +08:00
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
@ -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…
x
Reference in New Issue
Block a user