printrun-src/printrun/pronterface.py

changeset 42
ea4c43494a19
parent 36
f4730ef55ca8
child 43
f7e9bd735ce1
--- a/printrun-src/printrun/pronterface.py	Thu May 30 18:10:01 2019 +0200
+++ b/printrun-src/printrun/pronterface.py	Thu May 30 19:02:52 2019 +0200
@@ -1486,14 +1486,17 @@
                 # Generate GCODE from IMAGE
                 lc = laser.Lasercutter(pronterwindow = self)
                 lc.image2gcode(name)  
+                wx.CallAfter(self.endcb_lasercut)
             elif name.lower().endswith(".svg"):
                 # Generate GCODE from SVG
                 lc = laser.Lasercutter(pronterwindow = self)
                 lc.svg2gcode(name)  
+                wx.CallAfter(self.endcb_lasercut)
             elif name.lower().endswith(".hpgl") or name.lower().endswith(".plt"):
                 # Generate GCODE from HPGL
                 lc = laser.Lasercutter(pronterwindow = self)
                 lc.hpgl2gcode(name)  
+                wx.CallAfter(self.endcb_lasercut)
             else:
                 self.load_gcode_async(name)
         else:

mercurial