Commit 71dfcf14 authored by kliment's avatar kliment

Autoload file and enable print after skeining

parent 655ab135
......@@ -631,7 +631,11 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
try:
self.filename=self.filename.replace(".stl","_export.gcode")
self.f=[i.replace("\n","").replace("\r","") for i in open(self.filename)]
if self.p.online:
wx.CallAfter(self.printbtn.Enable)
wx.CallAfter(self.status.SetStatusText,"Loaded "+self.filename+", %d lines"%(len(self.f),))
threading.Thread(target=self.loadviz).start()
except:
self.filename=fn
......
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