Commit 122631bc authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #575: call // actions from wx thread

parent 0be26f15
......@@ -1687,14 +1687,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
command = command[1]
if command == "pause":
if not self.paused:
self.pause()
wx.CallAfter(lambda: self.pause())
return True
elif command == "resume":
if self.paused:
self.pause()
wx.CallAfter(lambda: self.pause())
return True
elif command == "disconnect":
self.do_disconnect(None)
wx.CallAfter(lambda: self.disconnect())
return True
return False
......
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