Axis: don't need to switch to Auto to load a program

Task allows Open in Manual mode now.  It's Run that needs Auto, and Axis
does that switch as needed.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
This commit is contained in:
Sebastian Kuzminsky 2016-05-10 18:45:32 -06:00
parent 27a67cdce8
commit ad06db2cec

View file

@ -1093,7 +1093,6 @@ def open_file_guts(f, filtered=False, addrecent=True):
# Force a sync of the interpreter, which writes out the var file. # Force a sync of the interpreter, which writes out the var file.
c.task_plan_synch() c.task_plan_synch()
c.wait_complete() c.wait_complete()
ensure_mode(linuxcnc.MODE_AUTO)
c.program_open(f) c.program_open(f)
lines = open(f).readlines() lines = open(f).readlines()
progress = Progress(2, len(lines)) progress = Progress(2, len(lines))