Auto update preview when gcode changes on the Editor.