Commit 03d991f7 authored by Guillaume Seguin's avatar Guillaume Seguin

Another thread safety change

parent 20e80711
...@@ -397,7 +397,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -397,7 +397,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
layer = gline.z layer = gline.z
if layer != self.curlayer: if layer != self.curlayer:
self.curlayer = layer self.curlayer = layer
self.gviz.clearhilights() wx.CallAfter(self.gviz.clearhilights)
wx.CallAfter(self.gviz.setlayer, layer) wx.CallAfter(self.gviz.setlayer, layer)
elif gline.command in ["M104", "M109"]: elif gline.command in ["M104", "M109"]:
gcoder.parse_coordinates(gline, split_raw, imperial = False, force = True) gcoder.parse_coordinates(gline, split_raw, imperial = False, force = True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment