Commit 54fd8798 authored by Kliment Yanev's avatar Kliment Yanev

Gcode was not analyzed when loading through pronterface load file button

parent 69793bd2
...@@ -1302,6 +1302,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1302,6 +1302,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
of = open(self.filename) of = open(self.filename)
self.f = [i.replace("\n", "").replace("\r", "") for i in of] self.f = [i.replace("\n", "").replace("\r", "") for i in of]
of.close() of.close()
self.fgcode = gcoder.GCode(self.f)
self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f))) self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f)))
wx.CallAfter(self.printbtn.SetLabel, _("Print")) wx.CallAfter(self.printbtn.SetLabel, _("Print"))
wx.CallAfter(self.pausebtn.SetLabel, _("Pause")) wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))
......
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